Skip to content

Commit

Permalink
Update src/main/java/org/opensearch/neuralsearch/util/TokenWeightUtil…
Browse files Browse the repository at this point in the history
….java

Co-authored-by: zane-neo <[email protected]>
Signed-off-by: zhichao-aws <[email protected]>
  • Loading branch information
zhichao-aws and zane-neo authored Sep 25, 2023
1 parent 283a7a3 commit c3d9fd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static List<Map<String, Float>> fetchListOfTokenWeightMap(List<Map<String

private static Map<String, Float> buildTokenWeightMap(Object uncastedMap) {
if (!Map.class.isAssignableFrom(uncastedMap.getClass())) {
throw new IllegalArgumentException("The expected inference result is a Map with String keys and " + " Float values.");
throw new IllegalArgumentException("The expected inference result is a Map with String keys and Float values.");
}
Map<String, Float> result = new HashMap<>();
for (Map.Entry<?, ?> entry : ((Map<?, ?>) uncastedMap).entrySet()) {
Expand Down

0 comments on commit c3d9fd3

Please sign in to comment.