Skip to main content

OpenKorPOS-dic packaged for Python

Project description

openkorpos-dic-py

This is a version of OpenKorPOS-dic packaged for use in Python with pymecab-ko.

OpenKorPOS-dic is developed by Sangwhan Moon, Won Ik Cho, Hyejoo Han, Naoaki Okazaki, and Nam Soo Kim for a comparison target of a new method claimed in their paper

Usage

To install:

pip install openkorpos-dic

To initialize with pymecab-ko:

>>> import mecab_ko as MeCab
>>> import openkorpos_dic
>>> tagger = MeCab.Tagger(openkorpos_dic.MECAB_ARGS)
>>> print(tagger.parse("아버지가방에들어가신다"))

아버지  NNG,*,F,아버지,*,*,*,*
      JKS,*,F,,*,*,*,*
      NNG,*,T,,*,*,*,*
      JKB,*,F,,*,*,*,*
들어가  VV,*,F,들어가,*,*,*,*
신다    EP+EF+VCP,*,F,신다,Inflect,EP,VCP,/EP/*+ᆫ다/EF/*+/VCP/*
EOS

Version

  • 08/31/2022:
    The version of the original dictionary is not defined yet.
    Therefore, I defined the version like the version of other mecab compatible dictionaries. And I added the commit hash id of the original repository to make it distinguishable.
    >>> openkorpos_dic.VERSION
    '1.0.0-20220620-c72cb7d'
    

License

OpenKorPOS-dic is available under the GPL-2.0 license, see here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openkorpos-dic-1.0.0.tar.gz (32.7 MB view hashes)

Uploaded Source

Built Distribution

openkorpos_dic-1.0.0-py3-none-any.whl (33.0 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page