public final class TokenInfoFST extends Object
Depending upon fasterButMoreRam, either just kana (191 arcs), or kana and han (28,607 arcs) are cached. The latter offers additional performance at the cost of more RAM.
Constructor and Description |
---|
TokenInfoFST(FST<Long> fst,
boolean fasterButMoreRam) |
Modifier and Type | Method and Description |
---|---|
FST.Arc<Long> |
findTargetArc(int ch,
FST.Arc<Long> follow,
FST.Arc<Long> arc,
boolean useCache,
FST.BytesReader fstReader) |
FST.BytesReader |
getBytesReader() |
FST.Arc<Long> |
getFirstArc(FST.Arc<Long> arc) |
public final Long NO_OUTPUT
public TokenInfoFST(FST<Long> fst, boolean fasterButMoreRam) throws IOException
IOException
public FST.Arc<Long> findTargetArc(int ch, FST.Arc<Long> follow, FST.Arc<Long> arc, boolean useCache, FST.BytesReader fstReader) throws IOException
IOException
public FST.BytesReader getBytesReader()
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.