Class BaseModel

    • Method Detail

      • getManifestProperty

        public final String getManifestProperty​(String key)
        Retrieves the value to the given key from the entry.
        Specified by:
        getManifestProperty in interface ArtifactProvider
        key -
        the value
      • getLanguage

        public final String getLanguage()
        Retrieves the language code of the material which was used to train the model or x-unspecified if non was set.
        Specified by:
        getLanguage in interface ArtifactProvider
        the language code of this model
      • getVersion

        public final Version getVersion()
        Retrieves the OpenNLP version which was used to create the model.
        the version
      • isLoadedFromSerialized

        public boolean isLoadedFromSerialized()
        Description copied from interface: ArtifactProvider
        Indicates if this provider was loaded from serialized. It is useful, for example, while validating artifacts: you can skip the time consuming ones if they where already validated during the serialization.
        Specified by:
        isLoadedFromSerialized in interface ArtifactProvider
        true if this model was loaded from serialized