def __init__(self):
     """
     features:
         1. words mix in title and sentence
         2. keywords in sentence
         3. Position of sentence
         4. Length of sentence
     """
     self.algorithm = 'word_significance'
     self.stop_words = stop_words.values()
     self.num = 0
Example #2
0
 def __init__(self):
     self.stop_words = stop_words.values()
     self.algorithm = 'mmr'
Example #3
0
 def __init__(self):
     self.algorithm = 'text_pronouns'
     self.stop_words = stop_words.values()
     self.len_ideal = 18  # 中心句子长度, 默认
Example #4
0
 def __init__(self):
     self.algorithm = 'textrank_gensim'
     self.stop_words = stop_words.values()
     self.len_ideal = 18  # 中心句子长度, 默认