Skip to main content

Build Status PyPi version

vdu-nlp-services

Function Reference

Reference

analyze_text

Perform morphological analysis

from vdu_nlp_services import analyze_text

res = analyze_text(u'Laba diena!', include_lemmas=True)
print (res)
([{u'lemma': u'laba diena', u'word': u'Laba diena', u'type': u'jst.'}, {u'sep': u'!'}, {u'p': None}], [{u'lemma': u'laba diena', 'span': (0, 4), u'word': u'Laba', u'type': u'jst.'}, {'other': u' ', 'span': (4, 5)}, {u'lemma': u'laba diena', 'span': (5, 10), u'word': u'diena', u'type': u'jst.'}, {'other': u'!', 'span': (10, 11)}])

stress_text

Accentuate text

from vdu_nlp_services import stress_text

res = stress_text(u'Laba diena!')
print (res)
'Laba` diena`!'

stress_word

Accentuate word

from vdu_nlp_services import stress_word

res = stress_word(u'Laba')
for stressed_word, tags in res:
   print(stressed_word, list(tags))
Laba` ['dktv.', 'mot.gim.', 'vnsk.', 'Įn.']
La~ba ['dktv.', 'mot.gim.', 'vnsk.', 'Š.']
Laba` ['bdvr.', 'mot.gim.', 'vnsk.', 'V.', 'neįvardž.']
Laba` ['bdvr.', 'mot.gim.', 'vnsk.', 'Įn.', 'neįvardž.']
La~ba ['bdvr.', 'mot.gim.', 'vnsk.', 'Š.', 'neįvardž.']
La~ba ['bdvr.', 'bevrd.gim.', 'neįvardž.']

Install

PyPi

pip install vdu-nlp-services

Git

pip install git+https://github.com/aleksas/vdu-nlp-services.git

Metadata

Release files for vdu-nlp-services 0.0.27

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vdu-nlp-services 0.0.27
File Size Uploaded Provenance
vdu_nlp_services-0.0.27.tar.gz 6.4 kB Without provenance Details

Release files / vdu_nlp_services-0.0.27.tar.gz

Download URL vdu_nlp_services-0.0.27.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c7250d721bfc0b024915e8d1bde2d20f3e84770791322ce94e595a7049316cfa
BLAKE2b-256 checksum
How to use checksums
772d2374219d7bbe4db0ba1b58591fce9b986e5f786df0076fe236ab898fd488
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7

Security for vdu-nlp-services 0.0.27

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page