Skip to main content

eKoNLPy

PyPI License Documentation

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

ekonlpy-2.2.1.tar.gz (19.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ekonlpy-2.2.1-py3-none-any.whl (10.3 MB view details)

Uploaded Python 3

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

Hashes for ekonlpy-2.2.1.tar.gz
Algorithm Hash digest
SHA256 aec5a5ef67e65f34c06bcc920d61b0f6ded18365b0d365f57044eaac1e690099
MD5 4da206e6d23e0fe608c74154a6cd7a96
BLAKE2b-256 c211ef971a876a0e47e4019785b653eedd82bafc0080dae02a03d50829259d59

See more details on using hashes here.

Provenance

The following attestation bundles were made for ekonlpy-2.2.1.tar.gz:

Publisher: release.yaml on entelecheia/eKoNLPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ekonlpy-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f31f465d3afad53b807fd27954c94b5acbac200d9b46ab52c83955e8c8257dd0
MD5 edced21dd3ccd50f820884d210de13fe
BLAKE2b-256 9e34e1c74b16ea2f0176472e02c95f129115a927a0b05b7d80523f8d774e004d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ekonlpy-2.2.1-py3-none-any.whl:

Publisher: release.yaml on entelecheia/eKoNLPy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.2.1 This release

2 files

2.2.0

2 files

2.1.0

2 files

2.0.6

2 files

2.0.5

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.1.7

2 files

1.1.6

2 files

1.1.5

2 files

1.1.4

2 files

1.1.3

2 files

1.1.1

2 files

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

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