CountVectorizer(analyzer='word', binary=False, decode_error='strict',
dtype=<class 'numpy.int64'>, encoding='utf-8', input='content',
lowercase=True, max_df=1.0, max_features=None, min_df=1,
ngram_range=(1, 1), preprocessor=None, stop_words=None,
strip_accents=None, token_pattern='(?u)\\b\\w\\w+\\b',
tokenizer=None, vocabulary=None)
Traceback (most recent call last):
File "demo3.py", line 33, in <module>
weight = X.toarray()
File "/home/pikachu/.local/lib/python3.6/site-packages/scipy/sparse/compressed.py", line 962, in toarray
out = self._process_toarray_args(order, out)
File "/home/pikachu/.local/lib/python3.6/site-packages/scipy/sparse/base.py", line 1187, in _process_toarray_args
return np.zeros(self.shape, dtype=self.dtype, order=order)
MemoryError
MemoryError
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.