semvec/pypi-packages huggingface dataset:
openkorpos-dic 1.0.0
OpenKorPOS-dic packaged for Python

# openkorpos-dic-py

This is a version of [OpenKorPOS-dic](https://github.com/openkorpos/model-mecab) packaged for use in Python with 
[pymecab-ko](https://github.com/NoUnique/pymecab-ko).

OpenKorPOS-dic is developed by [Sangwhan Moon](mailto:sangwhan@iki.fi), [Won Ik Cho](mailto:wicho@hi.snu.ac.kr), [Hyejoo Han](mailto:hyejoo@oddconcepts.kr), [Naoaki Okazaki](mailto:okazaki@c.titech.ac.jp), and [Nam Soo Kim](mailto:nkim@snu.ac.kr) for a comparison target of a new method claimed in [their paper](https://github.com/openkorpos/openkorpos/raw/main/openkorpos.pdf)

## Usage

To install:

```bash
pip install openkorpos-dic
```

To initialize with pymecab-ko:

```python
>>> 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.
  ```python
  >>> openkorpos_dic.VERSION
  '1.0.0-20220620-c72cb7d'
  ```

# License

OpenKorPOS-dic is available under the GPL-2.0 license, [see here](https://github.com/openkorpos/model-mecab/blob/main/LICENSE).
syllib 2022.108.131080457
suyiyi's package

### this is a lib of python
you can use `syllib.__version__` to show the version

## functions

### in package `syllib`
function `install(name: str)` (from syllib.pip)

install a package from https://pypi.org/simple

result: None


function `uninstall(name: str)` (from syllib.pip)

uninstall a package

result: None


function `abs_import(path: str, _globals=None, _locals=None, fromlist=(), level=0) -> module`

it can import a package from a far away path

path: a string of path

_globals: a dictionary like globals()

_locals: a dictionary like locals()

fromlist: a list or tuple

if enabled,it works like:

`from [path] import [fromlist]`

result: a module


### in package `syllib.xes`
function `get_cookies() -> str`

result: a string of cookies(in xueersi)


function `get_run_token() -> str`

result: a string of token(in the cookies)


function `send(mobile: int, content: str) -> bool`

        mobile: the mobile number of who you want to send
        content: a string of content what you want to send

result: True(success) or False(failed)

### in package `syllib.tools`
function `get_run_dir() -> str`

result: a string where 'python.exe'

### in package `syllib.config`
class `Config(name: str, auto_save: bool = True)`

You can use `cfg = Config([name,[auto_save]])` to create a config file
the file saves at the python path
it saves by module pickle

function `Config.read`

read saved file


function `Config.save`

save the attributes


function `Config.__getitem__`,`Config.__setitem__` and `Config.__delitem__`

works like python dictionary