https://github.com/recruit-tech/summpy
item | Description |
---|---|
OS | macOS sierra |
Package management | homebrew |
python version control | pyenv & virtualenv |
python version | 2.7.13 |
$ brew install mecab
$ brew install mecab-ipadic
$ pyenv virtualenv 2.7.13 new_2.7.13
$ pyenv local 2.7.13/envs/new_2.7.13
$ pip install summpy
$ pip install mecab-python
Server startup
$ python -m summpy.server -h 127.0.0.1 -p 8080
After starting the server, start another terminal and execute the following command
$ curl http://127.0.0.1:8080/summarize\?sent_limit\=3\&text\=Today is a good day, and it's suitable for celebrating their new start ...
Recommended Posts