Skip to content

Commit

Permalink
apply comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurChen189 committed May 9, 2023
1 parent 4713048 commit d01e9fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/anserini/search/SimpleImpactSearcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ public SimpleImpactSearcher(String indexDir) throws IOException {
*
* @param encoder the query encoder
*/
public void set_onnxQueryEncoder(String encoder) {
public void set_onnx_query_encoder(String encoder) {
if (empty_encoder()) {
try {
this.queryEncoder = (QueryEncoder) Class.forName("io.anserini.search.query." + encoder + "QueryEncoder")
.getConstructor().newInstance();
.getConstructor().newInstance();
} catch (Exception e) {
throw new RuntimeException(e);
}
Expand Down

0 comments on commit d01e9fe

Please # to comment.