Skip to content
This repository was archived by the owner on Jan 7, 2024. It is now read-only.
nagomisoPublic archive

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShioKobu (塩昆布)

A simple wrapper for natto-py. It's to allow to pickle of MeCab object.

"ShioKobu" means pickled sea kelp with salt in Japanese.

Usage

shiokobu.MeCab's API is same as natto.MeCab. The only difference between natto.MeCab and shiokobu.MeCab is that shiokobu.MeCab can be picklable.

import pickle
from shiokobu import MeCab

nm = MeCab("-d/var/lib/mecab/dic/juman-utf8")
print(nm.parse("すもももももももものうち"))

# picklable
nm2 = pickle.loads(pickle.dumps(nm))
print(nm2.parse("すもももももももものうち"))

License

This software is released under the MIT License, see LICENSE file.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages