Package opennlp.tools.ml.maxent
Klasse BasicContextGenerator
java.lang.Object
opennlp.tools.ml.maxent.BasicContextGenerator
- Alle implementierten Schnittstellen:
ContextGenerator<String>
A
ContextGenerator
implementation for maxent decisions, assuming that the input
given to the getContext(String)
method is a String containing contextual
predicates separated by spaces, for instance:
cp_1 cp_2 ... cp_n
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]
getContext
(String o) Builds up the list of contextual predicates given anobject
.
-
Konstruktordetails
-
BasicContextGenerator
public BasicContextGenerator() -
BasicContextGenerator
Initializes aBasicContextGenerator
with a different separator char. This overwrites the default whitespace separator.- Parameter:
sep
- Theseparator character
to use.
-
-
Methodendetails
-
getContext
Beschreibung aus Schnittstelle kopiert:ContextGenerator
Builds up the list of contextual predicates given anobject
.- Angegeben von:
getContext
in SchnittstelleContextGenerator<String>
- Parameter:
o
- Theobject
used as input.
-