axa-group / nlp.js

An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Entity recognition at random string location

riyaz7us opened this issue · comments

I need to extract the numeric entities from the utterances like the following:

find schools with 3 gpa
find schools with gpa 3
find schools with gpa score 3
find schools with gpa 3 and rank 5

Without training anything, it labels these entities as "number", to which I would like to give the appropriate name like "gpa" or "rank"
Although we could use addAfterCondition or addBeforeCondition, It could work with either of them, not both.

Is there any implementation that identifies these entities at random location? Please help, Thanks!