Python ElasticsearchとCarrot
-
21-12-2019 - |
質問
Python弾性検索を使用しています。文書のクラスタリングをする必要があります。私はCarrot2をインストールしました( https://github.com/carrot2/elasticsearch-carrot2 )。
の後にPythonからニンジンクラスタリングモジュールを呼び出す方法
from elasticsearch import Elasticsearch
es = Elasticsearch()
es.search(.....)
. 解決
Carrot2 Plugin for ESは、
でクラスタ化された文書にアクセスできます。.http://localhost:9200/_plugin/carrot2/ (or wherever your ES node is deployed)
PyelasticsearchからのCarrot2クラスタアクセスのサポートはありません。Pyelasticsearchの検索結果の上にCarrot2を適用できます。Carrot2を使用する必要がある場合は、 carrot2プロジェクトを見てください。それ以外のPythonテキストクラスタリングツール
。所属していません StackOverflow