You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Named Entity Recognition is not working as expected:
If an enumerated entity is added, it only finds the first occurance
If there is a regular expression entity that overlaps with an enumerated entity, if returns both instead of finding edges
To Reproduce
const{ NlpManager }=require('node-nlp');constmanager=newNlpManager({languages: ['en']});manager.addRegexEntity('mail',/\b(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})\b/ig);manager.addNamedEntityText('location','barcelona',['en'],['Barcelona','Barna']);manager.addNamedEntityText('location','madrid',['en'],['Madrid']);constresult=manager.process('en','My mail is barcelona@barcelona.es and i live in madrid',{});console.log(result);
Describe the bug
Named Entity Recognition is not working as expected:
To Reproduce
Expected behavior
Currently it returns:
It should return:
The text was updated successfully, but these errors were encountered: