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

nagomiso/shiokobu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages