我正在使用 python Elasticsearch ,我需要进行文档聚类。我已经安装了胡萝卜2 ( https://github.com/carrot2/elasticsearch-carrot2 )。
之后如何从python调用胡萝卜聚类模块
from elasticsearch import Elasticsearch
es = Elasticsearch()
es.search(.....)
最佳答案
ES 的 Carrot2 插件将使您能够访问集群文档
http://localhost:9200/_plugin/carrot2/ (or wherever your ES node is deployed)
看usage guide在 github 项目页面中。
不支持从 pyelasticsearch 访问 carrot2 集群。您可以在 pyelasticsearch 的搜索结果之上应用胡萝卜2。看看carrot2 project如果你需要使用胡萝卜2。其他看看一些python文本聚类工具here .
关于elasticsearch - Python Elasticsearch 和胡萝卜,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23047976/