-
Notifications
You must be signed in to change notification settings - Fork 215
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
ValueError: [E103] #22
Comments
@Huzmorgoth paste this code
|
@Abhimanyu100 Statring iteration 0 File "", line 1, in File "gold.pyx", line 715, in spacy.gold.GoldParse.init File "gold.pyx", line 925, in spacy.gold.biluo_tags_from_offsets ValueError: [E103] Trying to set conflicting doc.ents: '(3385, 3391, 'Companies worked at')' and '(3345, 3896, 'Skills')'. A token can only be part of one entity, so make sure the entities you're setting don't overlap. |
i also have this error.. ValueError: [E103] Trying to set conflicting doc.ents: '(370, 392, 'Designation')' and '(370, 391, 'Designation')'. A token can only be part of one entity, so make sure the entities you're setting don't overlap. |
[Edit] Which spacy version you are using? I'm able to resolve this issue. |
Python 3 |
I'm sorry. I was asking for Spacy version. |
Oh damn, it's 2.2.2 |
Use Spacy version 2.1.4 I was able to get results with this library. Let me know if this works for you. |
I am using spacy 2.2.3. In the older version of spacy, there was a bug which messed up the model after loading from disk. So, I had to update spacy and when I updated, I came across this issue. Sadly, I couldn't find a workaround and had to manually remove all conflicting entities. I have both testdata.json and traindata.json with cleaned data which will not raise this error. But I am not able to attach json format here. |
Hey could you post it in your own git and share the file? |
I got the same error as well. |
Hi, could you share the test and train.json. Thank you |
I am encounteering the same problem: ValueError: [E103] Trying to set conflicting doc.ents: '(1155, 1199, 'Email Address')' and '(1143, 1240, 'Links')'. A token can only be part of one entity, so make sure the entities you're setting don't overlap. Did you guys figure out a way to resolve it? |
@sayalraza Can you share the stated clean dataset |
@sayalraza Hey, can you please share the clean dataset. Thanks in advance! |
try installing this version :
|
@harshgeek4coder were you able to solve it? |
v3 gives new error so try for |
[E103] Trying to set conflicting doc.ents: '(402, 818, 'Skills')' and '(817, 1118, 'worked at')'. A token can only be part of one entity, so make sure the entities you're setting don't overlap. |
spaCy version 2.3.5 |
I have found this code that fixes the overlapping issue.
|
I get the error mentioned below while training, even when I used the same code.
ValueError: [E103] Trying to set conflicting doc.ents: '(6861, 6870, 'Companies worked at')' and '(6305, 7258, 'Skills')'. A token can only be part of one entity, so make sure the entities you're setting don't overlap.
The text was updated successfully, but these errors were encountered: