无监督自动关键词提取
semcluster的Python项目详细描述
semcluster
使用关联传播的无监督自动关键词提取
安装
使用克隆此回购协议及其子模块
git clone --recurse-submodules git@code.siemens.com:palle.klewitz/semcluster.git
安装esa wiki
cd ESA-Wiki python3 setup.py sdist bdist_wheel pip3 install dist/wiki_esa-0.0.1-py3-none-any.whl cd ..
安装semcluster
python3 setup.py sdist bdist_wheel pip3 install dist/semcluster-0.0.1-py3-none-any.whl
使用量
fromsemclusterimportSemClusterKeywordExtractortext="The quick brown fox jumps over the lazy dog."# Instantiate extractore=SemClusterKeywordExtractor()# Extract phraseskeyphrases=e.extract_keyphrases(text,seed_threshold=0.7,verbose=True)