letiantian/TextRank4ZH

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

ieliwb opened this issue · 2 comments

RT,谢谢

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

这里 allow_speech_tags 是词性列表。

谢谢