KUKoLex
KUKoLex is a Korean morphological analyzer and tagger made by NLP&AI LAB at Korea University. Main functions are as follows.
Requirements
Python 3
Install
From PyPi:
pip install kukolex
From GitHub:
pip install git+https://github.com/nlpai-lab/KU_KoLex.git
Usage
- pos_tagging(input)
It takes "sentences" as an input and gives a list of morphemes and their POS tags as an output
- morphs(input)
It takes "sentences" as an input and gives a list of morphemes.
- pos(input)
It takes "sentences" as an input and gives a list of POS tags.
- nouns(input)
It takes "sentences" as an input and gives a list of nouns.
from KUKoLex import kukolex
kukolex.pos_tagging('안녕하세요. 저의 이름은 홍길동입니다.')
# [('안녕', 'NNG'), ('하', 'XSA'), ('시', 'EP'), ('어요', 'EM'), ('.', 'SF'), ('저', 'NP'), ('의', 'JKG'), ('이름', 'NNG'), ('은', 'JX'), ('홍길동', 'NNP'), ('이', 'VCP'), ('ㅂ니다', 'EM'), ('.', 'SF')]
kukolex.morphs('안녕하세요. 저의 이름은 홍길동입니다.')
# ['안녕', '하', '시', '어요', '.', '저', '의', '이름', '은', '홍길동', '이', 'ㅂ니다', '.']
kukolex.pos('안녕하세요. 저의 이름은 홍길동입니다.')
# ['NNG', 'XSA', 'EP', 'EM', 'SF', 'NP', 'JKG', 'NNG', 'JX', 'NNP', 'VCP', 'EM', 'SF']
kukolex.nouns('안녕하세요. 저의 이름은 홍길동입니다.')
# ['안녕', '저', '이름', '홍길동']
Metadata
Release files for kukolex 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kukolex-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Release files / kukolex-0.0.7-py3-none-any.whl
| Download URL | kukolex-0.0.7-py3-none-any.whl |
|---|---|
| Size | 69.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf7e38861e8249f3d23a667991b00d8baf239d1edb645c37db2b7d061286ac0f
|
|
BLAKE2b-256 checksum How to use checksums |
2b7d50c3c7ae933ed84e62dde9a53db25d04535323f522385f8f267687cf97e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.5
|