コード例 #1
0
 def _load_stopwords(self):
     if self._stopwords_file:
         stopwords = load_stopwords(self._stopwords_file)
         self._stopwords = set(stopwords.splitlines())
     else:
         self._stopwords = set()
コード例 #2
0
ファイル: redis_test.py プロジェクト: magianxd/blockchain
 def _load_stopwords(self):
     stopwords = load_stopwords(self._stopwords_file)
     if stopwords:
         self._stopwords = set(stopwords.splitlines())
コード例 #3
0
 def _load_stopwords(self):
     if self._stopwords_file:
         stopwords = load_stopwords(self._stopwords_file)
         self._stopwords = set(stopwords.splitlines())
     else:
         self._stopwords = set()
コード例 #4
0
ファイル: models.py プロジェクト: jnosal/walrus
 def _load_stopwords(self):
     stopwords = load_stopwords(self._stopwords_file)
     if stopwords:
         self._stopwords = set(stopwords.splitlines())
コード例 #5
0
ファイル: __init__.py プロジェクト: coleifer/walrus
 def _load_stopwords(self, filename):
     stopwords = load_stopwords(filename)
     if stopwords:
         return set(stopwords.splitlines())
コード例 #6
0
ファイル: __init__.py プロジェクト: yuanhuikai/walrus
 def _load_stopwords(self, filename):
     stopwords = load_stopwords(filename)
     if stopwords:
         return set(stopwords.splitlines())