icenlp-bridge

Simplify using IceNLP (Icelandic NLP library written in Java)


Keywords
icenlp_bridge, icelandic, icenlp, nlp, python3
License
Apache-2.0
Install
pip install icenlp-bridge==0.1.1

Documentation

Python bridge for IceNLP

Documentation Status

Simplify using IceNLP (Icelandic NLP library written in Java)

Features

  • Run Icelandic NLP from python using a local IceNLP server and this library

Example

Start the local IceNLP server. For example using docker:

docker run -it --rm -p 1234:1234 sverrirab/icenlp

Install locally using:

pip install icenlp_bridge

Your code might look like this:

>>> from icenlp_bridge import parse
>>> print(parse('Vá hvað þetta var einfalt!'))

[InjP Vá au ] {*SUBJ [NP hvað fshen ] } {*SUBJ> [NP þetta fahen ] } [VPb var sfg3eþ ] {*COMP< [AP einfalt lhensf ] } ! !

You can also pipe files into icenlp_bridge

cat texti.txt | python -m icenlp_bridge

For connection options see python -m icenlp_bridge --help and init documentation.

Credits

This package is built on the excellent IceNLP library. Information on the docker image can be found on DockerHub.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.