Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add languages to Simplesearcher #2381

Merged
merged 1 commit into from
Feb 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
} 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();

Check warning on line 225 in src/main/java/io/anserini/search/SimpleSearcher.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/io/anserini/search/SimpleSearcher.java#L225

Added line #L225 was not covered by tests
// Also use whitespace analyzer for ha, so, yo in CIRAL.
}
}

Expand Down
Loading