You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def iter(self):
niter = 0
with open(self.filename) as f:
for line in f:
niter += 1
if self.max_iter is not None and niter > self.max_iter:
break
word_idx, pos1, pos2 = [], [], []
line = re.sub('###END###', '', line)
line = line.strip()
content = line.split()
ent1 = content[2]
ent2 = content[3]
relation = content[4]
if self.processing_relation is not None:
relation = self.processing_relation(relation) sentence = line[5:] # 这里,我认为应该是 sentence = content[5]
The text was updated successfully, but these errors were encountered:
def iter(self):
niter = 0
with open(self.filename) as f:
for line in f:
niter += 1
if self.max_iter is not None and niter > self.max_iter:
break
word_idx, pos1, pos2 = [], [], []
line = re.sub('###END###', '', line)
line = line.strip()
content = line.split()
ent1 = content[2]
ent2 = content[3]
relation = content[4]
if self.processing_relation is not None:
relation = self.processing_relation(relation)
sentence = line[5:] # 这里,我认为应该是 sentence = content[5]
The text was updated successfully, but these errors were encountered: