Class TokenNameFinderModel

    • Constructor Detail

      • TokenNameFinderModel

        public TokenNameFinderModel​(java.lang.String languageCode,
                                    SequenceClassificationModel<java.lang.String> nameFinderModel,
                                    byte[] generatorDescriptor,
                                    java.util.Map<java.lang.String,​java.lang.Object> resources,
                                    java.util.Map<java.lang.String,​java.lang.String> manifestInfoEntries,
                                    SequenceCodec<java.lang.String> seqCodec,
                                    TokenNameFinderFactory factory)
      • TokenNameFinderModel

        public TokenNameFinderModel​(java.lang.String languageCode,
                                    MaxentModel nameFinderModel,
                                    int beamSize,
                                    byte[] generatorDescriptor,
                                    java.util.Map<java.lang.String,​java.lang.Object> resources,
                                    java.util.Map<java.lang.String,​java.lang.String> manifestInfoEntries,
                                    SequenceCodec<java.lang.String> seqCodec,
                                    TokenNameFinderFactory factory)
      • TokenNameFinderModel

        public TokenNameFinderModel​(java.lang.String languageCode,
                                    MaxentModel nameFinderModel,
                                    byte[] generatorDescriptor,
                                    java.util.Map<java.lang.String,​java.lang.Object> resources,
                                    java.util.Map<java.lang.String,​java.lang.String> manifestInfoEntries)
      • TokenNameFinderModel

        public TokenNameFinderModel​(java.lang.String languageCode,
                                    MaxentModel nameFinderModel,
                                    java.util.Map<java.lang.String,​java.lang.Object> resources,
                                    java.util.Map<java.lang.String,​java.lang.String> manifestInfoEntries)
      • TokenNameFinderModel

        public TokenNameFinderModel​(java.io.InputStream in)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • TokenNameFinderModel

        public TokenNameFinderModel​(java.io.File modelFile)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • TokenNameFinderModel

        public TokenNameFinderModel​(java.nio.file.Path modelPath)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • TokenNameFinderModel

        public TokenNameFinderModel​(java.net.URL modelURL)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getSequenceCodec

        public SequenceCodec<java.lang.String> getSequenceCodec()
      • createArtifactSerializers

        public static java.util.Map<java.lang.String,​ArtifactSerializer> createArtifactSerializers()
        Create the artifact serializers. Currently for serializers related to features that require external resources, such as W2VClassesDictionary objects, the convention is to add its element tag name as key of the serializer map. For example, the element tag name for the WordClusterFeatureGenerator which uses W2VClassesDictionary objects serialized by the W2VClassesDictionarySerializer is 'wordcluster', which is the key used to add the serializer to the map.
        Returns:
        the map containing the added serializers