- Set up a Python environment with EstNLTK 1.6 (
version>=1.6.7b
). - Set up Neural morphological taggers and BertTagger.
- Clone this repository
- Install
pip install webtagger-service
cd webtagger-service
python server.py
This will run the server at http://127.0.0.1:5000.
pytest
http://127.0.0.1:5000/1.6.7beta/tag/bert_embeddings
http://127.0.0.1:5000/1.6.7beta/tag/morph_softmax_emb_tag_sum
These endpoints are used by the EstNLTK web-taggers. About web-taggers see https://github.com/estnltk/estnltk/tree/devel_1.6/estnltk/taggers/web_taggers and https://github.com/estnltk/estnltk/blob/devel_1.6/tutorials/taggers/web_taggers.ipynb.
To create a new endpoint
- create a new service (see morph_analysis as an example),
- add a new endpoint,
- write tests.
Also, you probably want to create a new web-tagger that uses the endpoint.