Skip to main content

Simplify using IceNLP (Icelandic NLP library written in Java)

Project description

Python bridge for IceNLP

https://img.shields.io/pypi/v/icenlp_bridge.svg https://img.shields.io/travis/sverrirab/icenlp_bridge.svg 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.

History

0.1.0 (2019-09-08)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for icenlp-bridge, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size icenlp_bridge-0.1.1-py2.py3-none-any.whl (8.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size icenlp_bridge-0.1.1.tar.gz (19.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page