|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.ie.hmm.AnswerConstructor
Takes a Collection of TypedTaggedWords (or a Collection of Words and a list of integers for the corresponsing types) and pulls out the strings of each type.
Constructor Summary | |
AnswerConstructor()
Constructs a new AnswerConstructor without a predefined list of word types. |
|
AnswerConstructor(int[] wordTypes)
Constructs a new AnswerConstructor with the given predfined list of types for each word that will be passed into process. |
Method Summary | |
Collection |
process(Collection collection)
Reads in the given collection of Words and using either the wordTypes passed into the constructor or the types of the words if none were provided to the constructor, pulls out the sequences of words with a non-zero type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AnswerConstructor(int[] wordTypes)
process
is called, assuming the words are actually
TypedTaggedWords.
public AnswerConstructor()
Method Detail |
public Collection process(Collection collection)
process
in interface Processor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |