Create a python environment and activate it
python3 -m venv venv
. venv/bin/activate
Install Flask
pip install Flask
pip install spacy
pip install nltk
We use spacy's en_core_web_md model, so install it
spacy download en_core_web_md
To run server use
python3 base.py
- POST
/nlp
Parameters
Name | Type | Description |
---|---|---|
dictate | String | Should be a string with send and to keywords to do the extraction |