eKoNLPy
eKoNLPy is a Python library for Korean text processing in economic and financial research. It provides a MeCab based tagger with an economic vocabulary and lexicon based sentiment analyzers for Korean and English text.
This documentation follows the repository source, which may include unreleased changes. Published versions are listed on PyPI.
Install
python -m pip install ekonlpy
eKoNLPy supports Python 3.9 or newer, below Python 4. The main CI matrix tests Python 3.12-3.14 on Linux, macOS, and Windows, and Python 3.9-3.11 on Linux. For Jupyter or Colab, install into the active kernel:
%pip install ekonlpy
Quick start
from ekonlpy import Mecab
tagger = Mecab()
print(tagger.pos("금통위는 금리정책을 결정했다."))
The default tagger applies eKoNLPy's extended vocabulary. Use
Mecab(use_original_tagger=True) for the underlying fugashi/MeCab tagger.
Instances keep their dictionaries, synonyms, and lemmas separate from one
another. See the documentation for tagging,
custom vocabularies, sentiment analyzers, and the CLI.
Sentiment example
from ekonlpy.sentiment import MPKO
analyzer = MPKO(kind=1)
tokens = analyzer.tokenize("금리 인상이 필요하다")
print(analyzer.get_score(tokens))
The sentiment package also exports EUKO, KSA, HIV4, LM, and MPCK.
KSA uses KoNLPy's Java backed Kkma tokenizer and is optional. The separate
KOSAC analyzer is another optional KoNLPy integration.
Development
make install
make check
make test
make docs-test
Contributions and issue reports are welcome on GitHub. For project documentation and verification steps, see the contributing guide.
License and citation
eKoNLPy is released under the MIT License. Research users can cite the project and the monetary policy text mining paper listed in the contributing and citation notes.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ekonlpy-2.2.1.tar.gz.
File metadata
- Download URL: ekonlpy-2.2.1.tar.gz
- Upload date:
- Size: 19.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aec5a5ef67e65f34c06bcc920d61b0f6ded18365b0d365f57044eaac1e690099
|
|
| MD5 |
4da206e6d23e0fe608c74154a6cd7a96
|
|
| BLAKE2b-256 |
c211ef971a876a0e47e4019785b653eedd82bafc0080dae02a03d50829259d59
|
Provenance
The following attestation bundles were made for ekonlpy-2.2.1.tar.gz:
Publisher:
release.yaml on entelecheia/eKoNLPy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ekonlpy-2.2.1.tar.gz -
Subject digest:
aec5a5ef67e65f34c06bcc920d61b0f6ded18365b0d365f57044eaac1e690099 - Sigstore transparency entry: 2862417335
- Sigstore integration time:
-
Permalink:
entelecheia/eKoNLPy@c07fe16d0b00bbeb0b0f219cf04e22dea2b10815 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/entelecheia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@c07fe16d0b00bbeb0b0f219cf04e22dea2b10815 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file ekonlpy-2.2.1-py3-none-any.whl.
File metadata
- Download URL: ekonlpy-2.2.1-py3-none-any.whl
- Upload date:
- Size: 10.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f31f465d3afad53b807fd27954c94b5acbac200d9b46ab52c83955e8c8257dd0
|
|
| MD5 |
edced21dd3ccd50f820884d210de13fe
|
|
| BLAKE2b-256 |
9e34e1c74b16ea2f0176472e02c95f129115a927a0b05b7d80523f8d774e004d
|
Provenance
The following attestation bundles were made for ekonlpy-2.2.1-py3-none-any.whl:
Publisher:
release.yaml on entelecheia/eKoNLPy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ekonlpy-2.2.1-py3-none-any.whl -
Subject digest:
f31f465d3afad53b807fd27954c94b5acbac200d9b46ab52c83955e8c8257dd0 - Sigstore transparency entry: 2862417478
- Sigstore integration time:
-
Permalink:
entelecheia/eKoNLPy@c07fe16d0b00bbeb0b0f219cf04e22dea2b10815 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/entelecheia
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@c07fe16d0b00bbeb0b0f219cf04e22dea2b10815 -
Trigger Event:
workflow_dispatch
-
Statement type: