Package opennlp.morfologik.tagdict
Klasse MorfologikPOSTaggerFactory
java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.postag.POSTaggerFactory
opennlp.morfologik.tagdict.MorfologikPOSTaggerFactory
The factory provides a Morfologik specific
POSTaggerFactory
implementation
and initializes related resources.-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen opennlp.tools.postag.POSTaggerFactory
POSTaggerFactory.POSDictionarySerializer
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungcreateTagDictionary
(File dictionary) Initializes aTagDictionary
from adictionary file
.void
setTagDictionary
(TagDictionary dictionary) Von Klasse geerbte Methoden opennlp.tools.postag.POSTaggerFactory
create, createFeatureGenerators, getPOSContextGenerator, getPOSContextGenerator, getSequenceValidator, validateArtifactMap
Von Klasse geerbte Methoden opennlp.tools.util.BaseToolFactory
create, create, createManifestEntries
-
Konstruktordetails
-
MorfologikPOSTaggerFactory
public MorfologikPOSTaggerFactory()
-
-
Methodendetails
-
createTagDictionary
Initializes aTagDictionary
from adictionary file
.- Setzt außer Kraft:
createTagDictionary
in KlassePOSTaggerFactory
- Parameter:
dictionary
- TheFile
used as input for creating the dictionary.- Gibt zurück:
- A valid
TagDictionary
ready for use. - Löst aus:
FileNotFoundException
- Thrown ifdictionary
or related metadata could not be read in.IOException
- Thrown if IO errors occurred.
-
getTagDictionary
- Setzt außer Kraft:
getTagDictionary
in KlassePOSTaggerFactory
- Gibt zurück:
- The
TagDictionary
used. - Löst aus:
RuntimeException
- Thrown if errors occurred loading or reading Morfologik dictionary files.
-
setTagDictionary
- Setzt außer Kraft:
setTagDictionary
in KlassePOSTaggerFactory
-
createEmptyTagDictionary
- Setzt außer Kraft:
createEmptyTagDictionary
in KlassePOSTaggerFactory
-
createTagDictionary
- Setzt außer Kraft:
createTagDictionary
in KlassePOSTaggerFactory
- Löst aus:
IOException
-
createArtifactSerializersMap
- Setzt außer Kraft:
createArtifactSerializersMap
in KlassePOSTaggerFactory
-
createArtifactMap
- Setzt außer Kraft:
createArtifactMap
in KlassePOSTaggerFactory
-