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 aBasicContextGeneratorwith a different separator char. This overwrites the default whitespace separator.- Parameter:
sep- Theseparator characterto use.
-
-
Methodendetails
-
getContext
Beschreibung aus Schnittstelle kopiert:ContextGeneratorBuilds up the list of contextual predicates given anobject.- Angegeben von:
getContextin SchnittstelleContextGenerator<String>- Parameter:
o- Theobjectused as input.
-