diff --git a/README.md b/README.md index 309f08a..37f4c1f 100644 --- a/README.md +++ b/README.md @@ -14,15 +14,23 @@ If your operating system is Mac OS and use homebrew, you can easily install both brew install mecab brew install mecab-ipadic ``` - + +You can build a docker image by our [Dockerfile](https://github.com/jxpress/pymecab/blob/master/Dockerfile). + ### Installation PyMecab ``` pip install pymecab ``` + ## Usage + +PyMecab provides you to easily access all part-of-speech features of mecab tokens on your code. + +The sample code is as follows: + ```python # -*- coding: UTF-8 -*- @@ -38,6 +46,16 @@ for token in mecab.tokenize(text): ``` +or + +You can use simple console script `pymecab.console` + +``` + +> echo 'テクノロジーで「ビジネスとジャーナリズムの両立」を実現する' | pymecab.cosole + +``` + The output of above sample codes are: ``` @@ -55,4 +73,3 @@ The output of above sample codes are: する 動詞 EOS ``` -