/Key_Phrase_Extraction

关键短语抽取

Primary LanguagePython

根据jieba生成关键短语

使用

    from KeyPhraseExtraction import KeyPhraseExtraction
    
    text = ""
    key_phrase_extractor = KeyPhraseExtraction(topk=50)
    
    # 短语及权重
    key_phrase = key_phrase_extractor.key_phrase_extraction(text)
    
    # 生成词云
    key_phrase_extractor.wordcloud(key_phrase)

效果