/morfeusz-lookup

API endpoint for a web service based on Morfeusz

Primary LanguagePythonOtherNOASSERTION

morfeusz-lookup

API endpoint for a web service based on the Morfeusz morphological analyser in conjunction with the Concraft-pl morphosyntactic disambiguator.

Requirements

Usage

  • 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), and CONCRAFT_PL_EXECUTABLE at the concraft-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 via dlopen option (tips on uWSGI)

Licensing

BSD 2-Clause, see LICENSE.txt for details.

See also