mirror of https://github.com/percyliang/sempre
Hack superlative for now
This commit is contained in:
parent
c7726bae0b
commit
922946cf0b
|
|
@ -269,7 +269,7 @@ public final class DenotationUtils {
|
|||
default: throw new LambdaDCSException(Type.invalidFormula, "Unknown superlative mode: %s", mode);
|
||||
}
|
||||
int from = Math.min(rank - 1, indices.size()),
|
||||
to = Math.min(from + count, indices.size());
|
||||
to = Math.min(Math.max(from, from + count), indices.size());
|
||||
for (int index : indices.subList(from, to))
|
||||
answer.add(pairs.get(index).getSecond());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue