Skip to content

Commit

Permalink
Add comments to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dyamah committed Jul 26, 2017
1 parent a2914f0 commit 64ea267
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 -*-

Expand All @@ -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:

```
Expand All @@ -55,4 +73,3 @@ The output of above sample codes are:
する 動詞
EOS
```

0 comments on commit 64ea267

Please sign in to comment.