public static class Util.TopNSearcher<T>
extends java.lang.Object
| Constructor and Description |
|---|
TopNSearcher(FST<T> fst,
int topN,
int maxQueueDepth,
java.util.Comparator<T> comparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStartPaths(FST.Arc<T> node,
T startOutput,
boolean allowEmptyString,
IntsRef input)
Adds all leaving arcs, including 'finished' arc, if
the node is final, from this node into the queue.
|
Util.MinResult<T>[] |
search() |
public void addStartPaths(FST.Arc<T> node, T startOutput, boolean allowEmptyString, IntsRef input) throws java.io.IOException
java.io.IOExceptionpublic Util.MinResult<T>[] search() throws java.io.IOException
java.io.IOExceptionCopyright © 2010 - 2024 Adobe. All Rights Reserved