Skip to main content

Latvian NLP Tools

Project description

LVNLP

Setup

  • python3.6+
  • pip3 install lvnlp

Tools

NLPPIPE_CLIENT

from lvnlp import nlppipe_run
print(nlppipe_run('Jānis brauc uz Rīgu.', ['tokenizer', 'ner']))

NER_ALLENNLP

Run API:

  • python3 -m lvnlp.ner_allennlp <MODEL_PATH>
  • Visit http://localhost:8800?text=Jānis brauc uz Rīgu.

From code:

p = TaggerPredictor.from_path(<MODEL_PATH>, 'tagger')
print(p.get_entities("""Ar cieņu , Rasa Jankovska p.k. 77923842011"""))
[{'text': 'Rasa Jankovska', 'label': 'person', 'start': 11, 'end': 25}, {'text': '77923842011', 'label': 'person_id', 'start': 31, 'end': 42}]

License

GPL-3.0

Project details


Download files

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

Source Distribution

lvnlp-0.0.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lvnlp-0.0.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file lvnlp-0.0.2.tar.gz.

File metadata

  • Download URL: lvnlp-0.0.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for lvnlp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 843eb565526390ac3d8ad508c7c0d2653ad2f3fb2c8bc9e6d979a008e79c0580
MD5 405185b02cabdfc7b637ee2dd8f7990f
BLAKE2b-256 179115cf0718644707eda43e89ead037b432f4ece9b5f5d7a7e5c37fe519b1cb

See more details on using hashes here.

File details

Details for the file lvnlp-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: lvnlp-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for lvnlp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16ee4d53bdba7e990fe131aa1b70a656ca1a588fbe2382a2773cf992dffcf5b8
MD5 5511e37926bdfee3e342335e5ad3ed41
BLAKE2b-256 a3400b07b22d629237d75e45cb2d54425eb0987ef3e5bd63b2c3002c4b082acb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page