你好,提取的关键词怎么按词性过滤呢
ieliwb opened this issue · 2 comments
ieliwb commented
RT,谢谢
letiantian commented
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
谢谢