예제 #1
0
 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
예제 #2
0
 def __init__(self):
     self.stop_words = stop_words.values()
     self.algorithm = 'mmr'
예제 #3
0
 def __init__(self):
     self.algorithm = 'text_pronouns'
     self.stop_words = stop_words.values()
     self.len_ideal = 18  # 中心句子长度, 默认
예제 #4
0
 def __init__(self):
     self.algorithm = 'textrank_gensim'
     self.stop_words = stop_words.values()
     self.len_ideal = 18  # 中心句子长度, 默认