PCNN icon indicating copy to clipboard operation
PCNN copied to clipboard

我发现一个错误,希望你确认一下

Open CCZGG opened this issue 6 years ago • 0 comments

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]

CCZGG avatar Oct 10 '19 06:10 CCZGG