def __init__(self, dict_path = ''):
super(Singleton, self).__init__()
if not hasattr(self,'_stop_words'):
#???????
if dict_path:
jieba.load_userdict(dict_path)
self._stop_words = set((
'', ' ', '\n', "the", "of", "is", "and", "to", "in", "that", "we", "for", "an", "are",
"by", "be", "as", "on", "with", "can", "if", "from", "which", "you", "it",
"this", "then", "at", "have", "all", "not", "one", "has", "or", "that"
))
评论列表
文章目录