What is this?
deeqnlpy is the python 3 library for deeq NLP.
Deeq(pronounce as deeque) NLP is a Korean NLP, which provides tokenizing, POS tagging for Korean.
How to install
pip3 install deeqnlpy
How to get deeq NLP
- Click this form
- Fill it.
- Get emailed download link, a license file.
- Or use docker image.
docker pull baikalai/deeq-nlp:v1.4.2
- Caution: You should use deeq NLP v1.4.2 or later.
How to use
import sys
import google.protobuf.text_format as tf
from deeqnlpy import Tagger
my_tagger = Tagger('localhost') # If you have your own local deeq NLP.
# or
tagger = Tagger() # With smaller public cloud instance, it may be slow.
# print results.
res = tagger.tags(["안녕하세요.", "반가워요!"])
# get protobuf message.
m = res.msg()
tf.PrintMessage(m, out=sys.stdout, as_utf8=True)
print(tf.MessageToString(m, as_utf8=True))
print(f'length of sentences is {len(m.sentences)}')
## output : 2
print(f'length of tokens in sentences[0] is {len(m.sentences[0].tokens)}')
print(f'length of morphemes of first token in sentences[0] is {len(m.sentences[0].tokens[0].morphemes)}')
print(f'lemma of first token in sentences[0] is {m.sentences[0].tokens[0].lemma}')
print(f'first morph of first token in sentences[0] is {m.sentences[0].tokens[0].morphemes[0]}')
print(f'tag of first morph of first token in sentences[0] is {m.sentences[0].tokens[0].morphemes[0].tag}')
# print number
# get json object
jo = res.as_json()
print(jo)
# get tuple of pos tagging.
pa = res.pos()
print(pa)
# another methods
ma = res.morphs()
print(ma)
na = res.nouns()
print(na)
va = res.verbs()
print(va)
# custom dictionary
cust_dic = tagger.custom_dict("my")
cust_dic.copy_np_set({'내고유명사', '우리집고유명사'})
cust_dic.copy_cp_set({'코로나19'})
cust_dic.copy_cp_caret_set({'코로나^백신', '"독감^백신'})
cust_dic.update()
tagger.set_domain('my')
tagger.pos('코로나19는 언제 끝날까요?')
Metadata
Release files for deeqnlpy 0.9.4
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 |
|---|---|---|---|---|
| deeqnlpy-0.9.4.tar.gz | 20.8 kB | Without provenance | Details for deeqnlpy-0.9.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deeqnlpy-0.9.4-py3-none-any.whl | Python 3 | none | any | Details for deeqnlpy-0.9.4-py3-none-any.whl |
Total release size: 46.2 kB
Release files / deeqnlpy-0.9.4.tar.gz
| Download URL | deeqnlpy-0.9.4.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6341fa48c74961e49c9164699ada94523160ef0c6aa6bfab78c665ab864717f9
|
|
BLAKE2b-256 checksum How to use checksums |
a505bc0a8aab40c0ea5182d204a5dd33053c7c30b8e5f2ccc5224a0aa56138da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.7.9 Darwin/20.3.0
|
Release files / deeqnlpy-0.9.4-py3-none-any.whl
| Download URL | deeqnlpy-0.9.4-py3-none-any.whl |
|---|---|
| Size | 25.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e10026e120e42177a493b7a8ffc8a6742d6e66ce86a748819bb6338c05e4e601
|
|
BLAKE2b-256 checksum How to use checksums |
023de4f112c5b355d0a19d17e7b8c2ecaa185f7f808e015dbe817ff02caed7c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.7.9 Darwin/20.3.0
|
Security for deeqnlpy 0.9.4
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.