public KnnSimsCommand( File sourceFile, File destinationFile, Charset charset, SingleEnumerating indexDeligate, int k) throws IOException { super(sourceFile, destinationFile, charset, EnumeratingDelegates.toPair(indexDeligate)); super.setComparator(Comparators.fallback(classComparator, nearnessComparator)); setK(k); }
public Comparator<Weighted<TokenPair>> getCombinedComparator() { return Comparators.fallback(getClassComparator(), getNearnessComparator()); }