Skip to content

Commit

Permalink
Merge pull request #1 from mino-park7/issue137
Browse files Browse the repository at this point in the history
fix lovit#137 contexts matrix dtype error
  • Loading branch information
mino-park7 committed Oct 31, 2021
2 parents 503eaee + eba0d4a commit a37de90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soynlp/vectorizer/_word_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ def _encode_as_matrix(word2contexts, vocab2idx, verbose):
print(' - (word, context) matrix was constructed. shape = {}{}'.format(
x.shape, ' '*20))

return x
return x.astype(float)

0 comments on commit a37de90

Please sign in to comment.