Package opennlp.tools.util.model
Interface ArtifactProvider
- All Known Implementing Classes:
- BaseModel,- ChunkerModel,- DoccatModel,- LanguageDetectorModel,- LemmatizerModel,- ParserModel,- POSModel,- SentenceModel,- TokenizerModel,- TokenNameFinderModel
public interface ArtifactProvider
Provides access to model persisted artifacts.
- 
Method SummaryModifier and TypeMethodDescription<T> TgetArtifact(String key) booleanIndicates if this provider was loaded from a serialized form.
- 
Method Details- 
getArtifact- Returns:
- Gets an artifact by an identifying key or name.
 
- 
getManifestProperty- Parameters:
- key- A string identifying an element.
- Returns:
- Retrieves the value for the given keyfrom themanifest.properties.
 
- 
getLanguageString getLanguage()- Returns:
- Retrieves the language code of the material which was used to train a model
         or 'x-unspecified'if non was set.
 
- 
isLoadedFromSerializedboolean 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. - Returns:
- trueif this model was loaded from a serialized form,- falseotherwise.
 
 
-