Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Commit

Permalink
fastText: fix FastText#loadInput (issue #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sszuev committed May 2, 2018
1 parent fce0391 commit 160c901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/cc/fasttext/FastText.java
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,7 @@ protected Matrix loadInput(Args args, Dictionary dictionary, String file) throws
if (numbers.size() < dim)
throw new IllegalArgumentException("Wrong numbers in the line: " + numbers.size() + ". Expected " + dim);
words.add(word);
dictionary.add(word);
for (int j = 0; j < numbers.size(); j++) {
mat.set(i, j, numbers.get(j));
}
Expand Down

0 comments on commit 160c901

Please sign in to comment.