Skip to content

Commit

Permalink
Add languages to Simplesearcher (#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mofetoluwa authored Feb 18, 2024
1 parent 66cadfe commit 43c9ecc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/io/anserini/search/SimpleSearcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ public void set_language(String language) {
} else if (language.equals("sw") || language.equals("te")) {
this.analyzer = new WhitespaceAnalyzer();
// For Mr.TyDi: sw and te do not have custom Lucene analyzers, so just use whitespace analyzer.
} else if (language.equals("ha") || language.equals("so") || language.equals("yo")) {
this.analyzer = new WhitespaceAnalyzer();
// Also use whitespace analyzer for ha, so, yo in CIRAL.
}
}

Expand Down

0 comments on commit 43c9ecc

Please sign in to comment.