You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/lawrencexu/Documents/python2pro/Language-Features-for-News-master/Compute_all_features/Compute_all_features.py", line 82, in
NB_pobj, NB_psubj = Functions.subjectivity(text)
File "/Users/lawrencexu/Documents/python2pro/Language-Features-for-News-master/Compute_all_features/resources/feature_functions.py", line 269, in subjectivity
X_new_tfidf = tfidf_transformer.transform(X_new_counts)
File "/Library/Python/2.7/site-packages/scikit_learn-0.20.0-py2.7-macosx-10.15-x86_64.egg/sklearn/feature_extraction/text.py", line 1265, in transform
X = X * self._idf_diag
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/base.py", line 303, in mul
return self._mul_sparse_matrix(other)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/compressed.py", line 513, in _mul_sparse_matrix
other = self.class(other) # convert to this format
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/compressed.py", line 26, in init
if arg1.format == self.format and copy:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/base.py", line 440, in getattr
raise AttributeError(attr + " not found")
AttributeError: format not found
The text was updated successfully, but these errors were encountered:
How to deal with this issue with python2.7
Traceback (most recent call last):
File "/Users/lawrencexu/Documents/python2pro/Language-Features-for-News-master/Compute_all_features/Compute_all_features.py", line 82, in
NB_pobj, NB_psubj = Functions.subjectivity(text)
File "/Users/lawrencexu/Documents/python2pro/Language-Features-for-News-master/Compute_all_features/resources/feature_functions.py", line 269, in subjectivity
X_new_tfidf = tfidf_transformer.transform(X_new_counts)
File "/Library/Python/2.7/site-packages/scikit_learn-0.20.0-py2.7-macosx-10.15-x86_64.egg/sklearn/feature_extraction/text.py", line 1265, in transform
X = X * self._idf_diag
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/base.py", line 303, in mul
return self._mul_sparse_matrix(other)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/compressed.py", line 513, in _mul_sparse_matrix
other = self.class(other) # convert to this format
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/compressed.py", line 26, in init
if arg1.format == self.format and copy:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/scipy/sparse/base.py", line 440, in getattr
raise AttributeError(attr + " not found")
AttributeError: format not found
The text was updated successfully, but these errors were encountered: