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

Exception: Invalid range given to ner_training_instance.overlaps_any_entity(). It overlaps an entity given to a previous call to add_entity(). #207

Closed
27arjunbali opened this issue Feb 19, 2020 · 1 comment

Comments

@27arjunbali
Copy link

sample=[]
for i in range(0,len(with_annot_list)):
samp=ner_training_instance(tok[i])
sample.append(samp)

for i in range(0,len(tok)):
sample[i].add_entity(xrange(first[i],second[i]),"Clause")

Where tok is list of lokenized strings and first is the list of integers and second also.

@27arjunbali
Copy link
Author

27arjunbali commented Feb 19, 2020

Solved this I have done a silly mistake i used regex on non tokenized strings

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