Skip to content
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

EntityText with especial character #368

Open
ran-j opened this issue Jan 14, 2020 · 2 comments
Open

EntityText with especial character #368

ran-j opened this issue Jan 14, 2020 · 2 comments

Comments

@ran-j
Copy link

ran-j commented Jan 14, 2020

I want to do math with user input like:

Q : "how much is 2+2"
R: "the answer is 4"

so I created a entity:

manager.addNamedEntityText('plus', 'plus', ['pt'], ['+','plus']);

And It does not recognizer my entity "+"

image

Node : 10.x
Node-nlp: 3.10.2
Windows 10

@ericzon
Copy link
Collaborator

ericzon commented Feb 2, 2020

@ran-j I imagine this character is being filtered during nlp steps. If you are using v3 you can try setting "+" inside utteranceDict as 'plus'. In this way, this character will be replaced before starting the nlp process.

@Apollon77
Copy link
Contributor

@ericzon Where would this be in v4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants