Class TokenInfoDictionary

  • All Implemented Interfaces:
    Dictionary

    public final class TokenInfoDictionary
    extends BinaryDictionary
    Binary dictionary implementation for a known-word dictionary model: Words are encoded into an FST mapping to a list of wordIDs.
    • Constructor Detail

      • TokenInfoDictionary

        public TokenInfoDictionary​(BinaryDictionary.ResourceScheme resourceScheme,
                                   String resourcePath)
                            throws IOException
        Parameters:
        resourceScheme - - scheme for loading resources (FILE or CLASSPATH).
        resourcePath - - where to load resources (dictionaries) from. If null, with CLASSPATH scheme only, use this class's name as the path.
        Throws:
        IOException