Class UnknownDictionary

  • All Implemented Interfaces:
    Dictionary

    public final class UnknownDictionary
    extends BinaryDictionary
    Dictionary for unknown-word handling.
    • Constructor Detail

      • UnknownDictionary

        @Deprecated(forRemoval=true,
                    since="9.1")
        public UnknownDictionary​(BinaryDictionary.ResourceScheme scheme,
                                 String resourcePath)
                          throws IOException
        Deprecated, for removal: This API element is subject to removal in a future version.
        Parameters:
        scheme - scheme for loading resources (FILE or CLASSPATH).
        resourcePath - where to load resources from; a path, including the file base name without extension; this is used to match multiple files with the same base name.
        Throws:
        IOException
      • UnknownDictionary

        public UnknownDictionary​(Path targetMapFile,
                                 Path posDictFile,
                                 Path dictFile)
                          throws IOException
        Create a UnknownDictionary from an external resource path.
        Parameters:
        targetMapFile - where to load target map resource
        posDictFile - where to load POS dictionary resource
        dictFile - where to load dictionary entries resource
        Throws:
        IOException - if resource was not found or broken