-
Notifications
You must be signed in to change notification settings - Fork 78
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
Duplicate key error while adding two mentions which are same #501
Comments
Note that this was happening because I was using two MentionExtractors for the two mentions. |
What would happen if you use only one MentionExtractor for the two mentions? |
I need two mention Extractors in my program because first I'm extracting some candidates with certain matchers and labelling functions, and based on those candidates extracted, I need to extract some other candidates, in next round. |
I'm not saying this is a bad idea or not. I'm just trying to understand the issue. Which version of Fonduer are you using? |
I'm using "0.8.2". I'm using a singleMentionExtractor for 4 mentions in the first run. I need to have those mentions extracted to extract other mentions in my second run, so using a second mention extractor. If I use a single extractor for all mentions, it's giving no errors for the same context match. If I use two extractors for 2 mentions, its throwing above error for the same context match. |
@saikalyan9981 Thanks for this valuable information! I'll look into this. |
|
I think this issue is similar (not identical) to #424. |
Closing as v0.8.3 has been released. |
Suppose that I have two mentions (say for example zip-code and tax code) whose matchers return true (checking 5 digit regex match for both mentions) for the same span in document, then I think Fonduer is throwing this error. please help me in resolving this.
The text was updated successfully, but these errors were encountered: