-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
Bug in text.py line 738 #2353
Copy link
Copy link
Closed
Description
in text.py there is a bug at line 738
X = sp.csr_matrix((values, j_indices, indptr),
shape=(len(indptr) - 1, len(vocabulary)),
dtype=self.dtype)
the shape shold not be len(vocabulary) but
max(vocabulary.itervalues()) + 1
this is because some of the indeces might repeat in the vocabulary
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels