Help us understand the problem. What is going on with this article?

Summpyを使ってみた

More than 3 years have passed since last update.

Summpyの使い方

参考

https://github.com/recruit-tech/summpy

環境

項目 説明
OS macOS sierra
パッケージ管理 homebrew
pythonバージョン管理 pyenv & virtualenv
python バージョン 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

実行方法

サーバ起動

$ python -m summpy.server -h 127.0.0.1 -p 8080

サーバ起動後、別の端末を起動し、以下のコマンドを実行

$ curl http://127.0.0.1:8080/summarize\?sent_limit\=3\&text\=本日はお日柄もよく、二人の新しい門出を祝うにふさわしい…
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away