Commit b073ba13 authored by Aleksandra Tsys's avatar Aleksandra Tsys
Browse files

+

parent 384f977c
......@@ -709,17 +709,9 @@ public class ContextAnalyzingSuggester extends Lookup implements Accountable {
protected boolean acceptResult(IntsRef input, PairOutputs.Pair<Long, BytesRef> output) {
LookupResult result = getLookupResult(output.output1, output.output2, spare);
BytesRef res_context = result.payload;
System.out.println("res_context = " + res_context);
for (BytesRef context : contexts) {
System.out.println("context = " + context);
}
if (contexts == null || !(contexts.contains(res_context))) {
return false;
}
System.out.println("contains 1");
return true;
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment