Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CCZGG opened this issue Oct 10, 2019 · 0 comments
Open

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

CCZGG opened this issue Oct 10, 2019 · 0 comments

Comments

@CCZGG
Copy link

CCZGG commented Oct 10, 2019

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant