LoginSignup
2
2

More than 5 years have passed since last update.

Summpyを使ってみた

Posted at

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\=本日はお日柄もよく、二人の新しい門出を祝うにふさわしい…
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2