Skip to content

Commit

Permalink
[api] Fix list parsing in CrossEncoderServingTranslator (deepjavalibr…
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 authored Aug 1, 2024
1 parent 9f5f8ed commit 22da01c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/** A {@link Translator} that can handle generic cross encoder {@link Input} and {@link Output}. */
public class CrossEncoderServingTranslator implements NoBatchifyTranslator<Input, Output> {

private static final Type LIST_TYPE = new TypeToken<List<String>>() {}.getType();
private static final Type LIST_TYPE = new TypeToken<List<StringPair>>() {}.getType();

private Translator<StringPair, float[]> translator;

Expand Down

0 comments on commit 22da01c

Please sign in to comment.