Python package to extract NP from the Ukrainian language
This is a simple package to extract noun phrases from a raw Ukrainian text. Use pip tool to install the package:
Installation
Use pip tool to install
pip install noun-phrase-ua
Caution: package has several dependencies. Package udpipe requires some extra utilities to compile some parts of code.
Usage
import noun_phrase_ua
nlp = noun_phrase_ua.NLP()
text = '"Послухати Зеленського, звичайно, цікаво з цієї точки зору. Тому я думаю, що дебати відбудуться. Але люди, в першу чергу будуть слухати Володимира Зеленського. Їх усіх, як я розумію, цікавить його особистість", - сказав Кучма, відповідаючи на питання журналістів.'
summary = nlp.extract_entities(text)
# summary["tokens"] contains list of tokens, summary["entities"] contains groups of indices
# than represent entities
See folder examples for more details. The description of the method that was used in the package can found in the work (link):
Погорілий С.Д., Крамов А.А. Метод виявлення іменних груп в україномовних текстах. Control Systems and Computers. 2019. № 5. С. 48-59.
Please cite this work if you use this package. Thank you! :)
=====================================================
Програмний пакет Python для екстракції іменних груп з україномовних текстів
Це простий пакет екстракції іменних груп з будь-яких україномовних текстів. Використовуйте інструмент pip для встановлення пакету.
Встановлення
Використовуйте pip для встановлення:
pip install noun-phrase-ua
Увага: пакет містить декілька залежностей. Пакет udpipe потребує використання декількох додаткових утиліт для компіляції певних частин коду.
Приклад використання
import noun_phrase_ua
nlp = noun_phrase_ua.NLP()
text = '"Послухати Зеленського, звичайно, цікаво з цієї точки зору. Тому я думаю, що дебати відбудуться. Але люди, в першу чергу будуть слухати Володимира Зеленського. Їх усіх, як я розумію, цікавить його особистість", - сказав Кучма, відповідаючи на питання журналістів.'
summary = nlp.extract_entities(text)
# summary["tokens"] contains list of tokens, summary["entities"] contains groups of indices
# than represent entities
Дивіться папку examples для подробиць використання. Опис методу, що використовується у пакеті, знаходиться в роботі (посилання):
Погорілий С.Д., Крамов А.А. Метод виявлення іменних груп в україномовних текстах. Control Systems and Computers. 2019. № 5. С. 48-59.
Будь ласка, цитуйте цю роботу, якщо використовуєте цей пакет. Дякуємо! :)
Metadata
Release files for noun-phrase-ua 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| noun-phrase-ua-0.0.5.tar.gz | 16.6 MB | Without provenance | Details for noun-phrase-ua-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| noun_phrase_ua-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for noun_phrase_ua-0.0.5-py3-none-any.whl |
Total release size: 33.2 MB
Release files / noun-phrase-ua-0.0.5.tar.gz
| Download URL | noun-phrase-ua-0.0.5.tar.gz |
|---|---|
| Size | 16.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3cf2a3292e2062c75c1aa1f9f0402204826f9308596cd8d228f5a2557c6fb86
|
|
BLAKE2b-256 checksum How to use checksums |
798552dd125346412187253fc3f4efcb1c87627830aba2325ac53455646db3fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.5
|
Release files / noun_phrase_ua-0.0.5-py3-none-any.whl
| Download URL | noun_phrase_ua-0.0.5-py3-none-any.whl |
|---|---|
| Size | 16.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a02da133f9ee0eeebe70e369b63ba2c1a4f43fd51bcf9daedc3ea68f5f54fef
|
|
BLAKE2b-256 checksum How to use checksums |
dac9384b0a1dfa1716a2a99966d5cc092b0b72fac4d59b27b99d4e103b0c1920
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.5
|
Security for noun-phrase-ua 0.0.5
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.