Package opennlp.tools.util.model
Schnittstelle ArtifactProvider
- Alle bekannten Implementierungsklassen:
BaseModel
,ChunkerModel
,DoccatModel
,LanguageDetectorModel
,LemmatizerModel
,ParserModel
,POSModel
,SentenceModel
,TokenizerModel
,TokenNameFinderModel
public interface ArtifactProvider
Provides access to model persisted artifacts.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<T> T
getArtifact
(String key) boolean
Indicates if this provider was loaded from a serialized form.
-
Methodendetails
-
getArtifact
- Gibt zurück:
- Gets an artifact by an identifying key or name.
-
getManifestProperty
- Parameter:
key
- A string identifying an element.- Gibt zurück:
- Retrieves the value for the given
key
from themanifest.properties
.
-
getLanguage
String getLanguage()- Gibt zurück:
- Retrieves the language code of the material which was used to train a model
or
'x-unspecified'
if non was set.
-
isLoadedFromSerialized
boolean isLoadedFromSerialized()Indicates if this provider was loaded from a serialized form.It is useful, for example, during the validation of artifacts: Skip the time-consuming ones if those were already validated during the serialization process.
- Gibt zurück:
true
if this model was loaded from a serialized form,false
otherwise.
-