Skip to content

Commit

Permalink
Revert "Word2VecSynonymFilter constructor null check (#12169)"
Browse files Browse the repository at this point in the history
This reverts commit 4deb000.
  • Loading branch information
alessandrobenedetti committed Apr 25, 2023
1 parent afb5ed6 commit 19925d4
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ public Word2VecSynonymFilter(
int maxSynonymsPerTerm,
float minAcceptedSimilarity) {
super(input);
if (synonymProvider == null) {
throw new IllegalArgumentException("The SynonymProvider must be non-null");
}
this.synonymProvider = synonymProvider;
this.maxSynonymsPerTerm = maxSynonymsPerTerm;
this.minAcceptedSimilarity = minAcceptedSimilarity;
Expand Down

0 comments on commit 19925d4

Please sign in to comment.