From ac9687de0cb061b5d0f132b9a78dc813212ff704 Mon Sep 17 00:00:00 2001 From: Andrey Belov Date: Mon, 19 Feb 2024 02:33:39 +0300 Subject: [PATCH] Update model.py (np.float -> float) np.float was deprecated in numpy 1.20; changed it to float --- rnnmorph/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rnnmorph/model.py b/rnnmorph/model.py index 0079a23..fb3b8d2 100644 --- a/rnnmorph/model.py +++ b/rnnmorph/model.py @@ -378,7 +378,7 @@ def predict_probabilities(self, sentences: List[List[str]], batch_size: int, words = np.zeros((n_samples, max_sentence_len), dtype=np.int) grammemes = np.zeros((n_samples, max_sentence_len, self.grammeme_vectorizer_input.grammemes_count()), - dtype=np.float) + dtype=float) chars = np.zeros((n_samples, max_sentence_len, build_config.char_max_word_length), dtype=np.int) for i, sentence in enumerate(sentences):