Package opennlp.tools.sentdetect
Klasse SentenceModel
java.lang.Object
opennlp.tools.util.model.BaseModel
opennlp.tools.sentdetect.SentenceModel
- Alle implementierten Schnittstellen:
Serializable
,ArtifactProvider
The
SentenceModel
is the model used by a learnable
SentenceDetector
.- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder opennlp.tools.util.model.BaseModel
TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungSentenceModel
(File modelFile) Initializes aSentenceModel
instance via a validFile
.Initializes aSentenceModel
instance via a validInputStream
.SentenceModel
(String languageCode, MaxentModel sentModel, Map<String, String> manifestInfoEntries, SentenceDetectorFactory sdFactory) Initializes aSentenceModel
instance via given parameters.SentenceModel
(URL modelURL) Initializes aSentenceModel
instance via a validURL
.SentenceModel
(Path modelPath) Initializes aSentenceModel
instance via a validPath
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungchar[]
boolean
Von Klasse geerbte Methoden opennlp.tools.util.model.BaseModel
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, serialize, serialize
-
Konstruktordetails
-
SentenceModel
public SentenceModel(String languageCode, MaxentModel sentModel, Map<String, String> manifestInfoEntries, SentenceDetectorFactory sdFactory) Initializes aSentenceModel
instance via given parameters.- Parameter:
languageCode
- The ISO language code for this model. Must not benull
.sentModel
- A validMaxentModel
.manifestInfoEntries
- Additional information kept in the manifest.sdFactory
- TheSentenceDetectorFactory
for creating related objects.
-
SentenceModel
Initializes aSentenceModel
instance via a validInputStream
.- Parameter:
in
- TheInputStream
used for loading the model.- Löst aus:
IOException
- Thrown if IO errors occurred during initialization.
-
SentenceModel
Initializes aSentenceModel
instance via a validFile
.- Parameter:
modelFile
- TheFile
used for loading the model.- Löst aus:
IOException
- Thrown if IO errors occurred during initialization.
-
SentenceModel
Initializes aSentenceModel
instance via a validPath
.- Parameter:
modelPath
- ThePath
used for loading the model.- Löst aus:
IOException
- Thrown if IO errors occurred during initialization.
-
SentenceModel
Initializes aSentenceModel
instance via a validURL
.- Parameter:
modelURL
- TheURL
used for loading the model.- Löst aus:
IOException
- Thrown if IO errors occurred during initialization.
-
-
Methodendetails
-
getFactory
-
getMaxentModel
-
getAbbreviations
-
useTokenEnd
public boolean useTokenEnd() -
getEosCharacters
public char[] getEosCharacters()
-