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

        private TokenInfoDictionary()
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • TokenInfoDictionary

        TokenInfoDictionary​(BinaryDictionary.ResourceScheme resourceScheme,
                            java.lang.String resourcePath)
                     throws java.io.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:
        java.io.IOException