letiantian / TextRank4ZH

:deciduous_tree:从中文文本中自动提取关键词和摘要
MIT License
3.27k stars 847 forks source link

你好,提取的关键词怎么按词性过滤呢 #18

Closed ieliwb closed 6 years ago

ieliwb commented 6 years ago

RT,谢谢

letiantian commented 6 years ago
class TextRank4Keyword(object):

    def __init__(self, stop_words_file = None, 
                 allow_speech_tags = util.allow_speech_tags, 
                 delimiters = util.sentence_delimiters):

这里 allow_speech_tags 是词性列表。

ieliwb commented 6 years ago

谢谢