LoginSignup
2
2

More than 5 years have passed since last update.

Summpyを使ってみたらエラーが出たので

Posted at

リクルートが公開している文章要約API、Summpy( https://github.com/recruit-tech/summpy )。LexRankなどのロジックを用いて、入力した文章から重要なセンテンスを抜き出してくれるというものです。ただいま文章生成についてトライしていて試してみた次第。

利用には様々なライブラリが必要ですが、

summpyを使って文章を要約してみる(今北産業)
http://kakushika.hatenablog.com/entry/2016/01/11/231727

などを参照させていただき簡単に完了しました。

文章を入力して試してみたのですが、なぜか3センテンス以上の文章を入力すると以下のエラー。

error: add_edge() takes exactly 3 arguments (4 given)

色々検索した結果

pip install networkx==1.11
pip install multiqc==1.2

MultiQCのバグだということで、上記を試すと正常に動作しました。文章生成は奥が深いので、もう少し試してみようと思います。

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