Skip to content

Commit

Permalink
numpy deprecated np.int, replace with identical int (#2757)
Browse files Browse the repository at this point in the history
  • Loading branch information
purificant committed Jul 26, 2021
1 parent 39b84d9 commit 0983062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nltk/tag/hmm.py
Expand Up @@ -393,7 +393,7 @@ def _best_path(self, unlabeled_sequence):
P, O, X, S = self._cache

V = np.zeros((T, N), np.float32)
B = -np.ones((T, N), np.int)
B = -np.ones((T, N), int)

V[0] = P + O[:, S[unlabeled_sequence[0]]]
for t in range(1, T):
Expand Down

0 comments on commit 0983062

Please sign in to comment.