API endpoint for a web service based on the Morfeusz morphological analyser in conjunction with the Concraft-pl morphosyntactic disambiguator.
- Python 3.4+
- Morfeusz bindings for Python and related dependencies (see downloads page)
- (optional) Concraft-pl executable and model (see downloads page and instructions)
- see requirements.txt
- make the
MORFEUSZ_DICT_PATH
environment variable point at the path that contains your SGJP binaries (sgjp-a.dict
,sgjp-d.dict
)- optional, Morfeusz will inspect default paths without this
- make
CONCRAFT_PL_MODEL
point at the .gz model file (e.g.concraft-pl-model-SGJP-xxxxxxxx.gz
), andCONCRAFT_PL_EXECUTABLE
at theconcraft-pl
executable- optional, leaving these unset will disable the morphosyntactic tagging and disambiguation feature
- configure and launch your uWSGI/Flask-based server
- make sure
libmorfeusz2.so
can be found on runtime viadlopen
option (tips on uWSGI)
- make sure
BSD 2-Clause, see LICENSE.txt for details.
- WS:AUTOLINK at pl.wiktionary.org
- Java implementation (I'm not maintaining this anymore)
- https://morfeusz.toolforge.org/api