From 64ea26775403e86c5fc075c19a8a97655acac17e Mon Sep 17 00:00:00 2001 From: dyamah Date: Wed, 26 Jul 2017 11:43:49 +0900 Subject: [PATCH] Add comments to README.md --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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 ``` -