Skip to content

Commit

Permalink
Merge pull request #9 from a-belov/patch-2
Browse files Browse the repository at this point in the history
Update model.py (np.float -> float)
  • Loading branch information
IlyaGusev authored May 22, 2024
2 parents d05dcbe + 9954c48 commit 87d1cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rnnmorph/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def predict_probabilities(self, sentences: List[List[str]], batch_size: int,

words = np.zeros((n_samples, max_sentence_len), dtype=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=int)

for i, sentence in enumerate(sentences):
Expand Down

0 comments on commit 87d1cd6

Please sign in to comment.