-
Notifications
You must be signed in to change notification settings - Fork 616
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
Bug in extractor-enum.js with original text indexes #1331
Comments
I think that changing this: to this: may solve the problem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good afternoon,
I was having an issue with repeated tokens (I want to recognize operations over a query) and I think that the function extract(srcInput) on extractor-enum.js has a little bug, the originalTextIndex is being increased by token length but not by the separators.
For example:
I'm using version 4.27.0:
npm list node-nlp
`-- node-nlp@4.27.0
It's happening in extractor-enum.js line 306 to 322 (async extract(srcInput))
Best regards.
The text was updated successfully, but these errors were encountered: