Skip to content

Commit

Permalink
Corpus: fix deprecated use of array
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimozGodec committed Aug 31, 2020
1 parent 3123218 commit 8bd6874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orangecontrib/text/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def store_tokens(self, tokens, dictionary=None):
Args:
tokens (list): List of lists containing tokens.
"""
self._tokens = np.array(tokens)
self._tokens = np.array(tokens, dtype=object)
self._dictionary = dictionary or corpora.Dictionary(self.tokens)

@property
Expand Down

0 comments on commit 8bd6874

Please sign in to comment.