public static enum PhraseAnnotation.Phrase extends Enum<PhraseAnnotation.Phrase>
Enum Constant and Description |
---|
ADJP |
ADVP |
CONJP |
FRAG |
INTJ |
LST |
NAC |
NP |
NX |
PP |
PRN |
PRT |
QP |
RRC |
UCP |
UK
This is added for phrases with no mapping to penn bank.
|
VP |
WHADJP |
WHAVP |
WHNP |
WHPP |
X |
Modifier and Type | Field and Description |
---|---|
String |
DESCRIPTION
Penn Tree Bank short description
|
Modifier and Type | Method and Description |
---|---|
static PhraseAnnotation.Phrase |
getPhrasefromString(String pennAbreviation)
Returns a
PhraseAnnotation.Phrase based on the string. |
static PhraseAnnotation.Phrase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PhraseAnnotation.Phrase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PhraseAnnotation.Phrase ADJP
public static final PhraseAnnotation.Phrase ADVP
public static final PhraseAnnotation.Phrase CONJP
public static final PhraseAnnotation.Phrase FRAG
public static final PhraseAnnotation.Phrase INTJ
public static final PhraseAnnotation.Phrase LST
public static final PhraseAnnotation.Phrase NAC
public static final PhraseAnnotation.Phrase NP
public static final PhraseAnnotation.Phrase NX
public static final PhraseAnnotation.Phrase PP
public static final PhraseAnnotation.Phrase PRN
public static final PhraseAnnotation.Phrase PRT
public static final PhraseAnnotation.Phrase QP
public static final PhraseAnnotation.Phrase RRC
public static final PhraseAnnotation.Phrase UCP
public static final PhraseAnnotation.Phrase VP
public static final PhraseAnnotation.Phrase WHADJP
public static final PhraseAnnotation.Phrase WHAVP
public static final PhraseAnnotation.Phrase WHNP
public static final PhraseAnnotation.Phrase WHPP
public static final PhraseAnnotation.Phrase X
public static final PhraseAnnotation.Phrase UK
public final String DESCRIPTION
public static PhraseAnnotation.Phrase[] values()
for (PhraseAnnotation.Phrase c : PhraseAnnotation.Phrase.values()) System.out.println(c);
public static PhraseAnnotation.Phrase valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PhraseAnnotation.Phrase getPhrasefromString(String pennAbreviation)
PhraseAnnotation.Phrase
based on the string.pennAbreviation
- PhraseAnnotation.Phrase