Skip to content

Commit

Permalink
Reverting small change to lexical syntactic featurizer
Browse files Browse the repository at this point in the history
  • Loading branch information
twerkmeister committed Jul 26, 2022
1 parent 9e1bab9 commit f867660
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ def _map_raw_features_to_indices(
rows.append(token_idx)
cols.append(feature_idx)
data = np.ones(len(rows))
return scipy.sparse.coo_matrix((data, (rows, cols)), shape=shape)
return scipy.sparse.coo_matrix(
(data, (np.array(rows), np.array(cols))), shape=shape
)

@classmethod
def create(
Expand Down

0 comments on commit f867660

Please sign in to comment.