Skip to content

estnltk/webtagger-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webservice for EstNLTK web-taggers

Install

  1. Set up a Python environment with EstNLTK 1.6 (version>=1.6.7b).
  2. Set up Neural morphological taggers and BertTagger.
  3. Clone this repository
  4. Install
    pip install webtagger-service
    

Run server

cd webtagger-service
python server.py

This will run the server at http://127.0.0.1:5000.

Run tests

pytest

Existing endpoints

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.

New endpoint

To create a new endpoint

  1. create a new service (see morph_analysis as an example),
  2. add a new endpoint,
  3. write tests.

Also, you probably want to create a new web-tagger that uses the endpoint.

About

webservice for estnltk web-taggers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages