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

Extracting Number Entities #261

Closed
ghost opened this issue Apr 4, 2017 · 3 comments
Closed

Extracting Number Entities #261

ghost opened this issue Apr 4, 2017 · 3 comments
Labels
type:question 💬 Question around usage, examples

Comments

@ghost
Copy link

ghost commented Apr 4, 2017

rasa NLU version (e.g. 0.7.3):

0.7.3

Used backend / pipeline (mitie, spacy_sklearn, ...):

spacy_sklearn

Operating system (windows, osx, ...):

osx

Issue:

Is it possible to extract number entities ?

@amn41 amn41 added the type:question 💬 Question around usage, examples label Apr 5, 2017
@tmbo
Copy link
Member

tmbo commented Apr 6, 2017

Sure thing, you can use the fine_tune_spacy_ner setting to resuse existing spay entities. There is an entity for cardinals (https://spacy.io/docs/usage/entity-recognition#entity-types) which should capture numbers.

@ghost
Copy link
Author

ghost commented Apr 6, 2017

@tmbo is there an example I can use for the API for this ?

@tmbo
Copy link
Member

tmbo commented Apr 6, 2017

Before training your model you need to add this key to your configuration e.g.:

{
  "backend": "spacy_sklearn",
  "path" : "./models",
  "data" : "./data/examples/rasa/demo-rasa.json",
  "fine_tune_spacy_ner": true
}

After training your model you can use the server to shoot queries at it. and it should return your custom entities as well as the pretrained spacy entities.

@tmbo tmbo closed this as completed Apr 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question 💬 Question around usage, examples
Projects
None yet
Development

No branches or pull requests

2 participants