GitHub - fxsjy/jieba: 结巴中文分词
github.com › fxsjy › jiebaFeb 15, 2020 · import jieba.analyse. jieba.analyse.extract_tags(sentence, topK=20, withWeight=False, allowPOS=()) sentence 为待提取的文本; topK 为返回几个 TF/IDF 权重最大的关键词,默认值为 20; withWeight 为是否一并返回关键词权重值,默认值为 False; allowPOS 仅包括指定词性的词,默认值为空,即不筛选