public class Phrase extends PartOfSpeechTag
Constructor and Description |
---|
Phrase(java.lang.String text,
PartOfSpeech pos)
Create a Phrase
|
Phrase(java.lang.String text,
PartOfSpeech pos,
java.lang.String phraseObject)
Create a Phrase
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPhraseObject()
Get the object of the phrase
|
getPartOfSpeech, getSense, getTag, getWord, setSense, toString
public Phrase(java.lang.String text, PartOfSpeech pos)
text
- the text of the phrasepos
- the type of phrase. Typically NOUN, VERB, or PREPOSITIONpublic Phrase(java.lang.String text, PartOfSpeech pos, java.lang.String phraseObject)
text
- the text of the phrasepos
- the type of phrase. Typically NOUN, VERB, or PREPOSITIONphraseObject
- the object of the phrase.