public static enum POSAnnotation.PartOfSpeech extends Enum<POSAnnotation.PartOfSpeech>
Enum Constant and Description |
---|
CC |
CD |
DT |
EX |
FW |
IN |
JJ |
JJR |
JJS |
LS |
MD |
NN |
NNP |
NNPS |
NNS |
PDT |
POS |
PRP |
PRP$ |
RB |
RBR |
RBS |
RP |
SYM |
TO |
UH |
UK
This is added for pos with no mapping to penn bank.
|
VB |
VBD |
VBG |
VBN |
VBP |
VBZ |
WDT |
WP |
WP$ |
WRB |
Modifier and Type | Field and Description |
---|---|
String |
DESCRIPTION
Penn Tree Bank short description
|
Modifier and Type | Method and Description |
---|---|
static POSAnnotation.PartOfSpeech |
getPOSfromString(String pennAbreviation)
Gets a
POSAnnotation.PartOfSpeech from a string. |
static POSAnnotation.PartOfSpeech |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static POSAnnotation.PartOfSpeech[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final POSAnnotation.PartOfSpeech CC
public static final POSAnnotation.PartOfSpeech CD
public static final POSAnnotation.PartOfSpeech DT
public static final POSAnnotation.PartOfSpeech EX
public static final POSAnnotation.PartOfSpeech FW
public static final POSAnnotation.PartOfSpeech IN
public static final POSAnnotation.PartOfSpeech JJ
public static final POSAnnotation.PartOfSpeech JJR
public static final POSAnnotation.PartOfSpeech JJS
public static final POSAnnotation.PartOfSpeech LS
public static final POSAnnotation.PartOfSpeech MD
public static final POSAnnotation.PartOfSpeech NN
public static final POSAnnotation.PartOfSpeech NNS
public static final POSAnnotation.PartOfSpeech NNP
public static final POSAnnotation.PartOfSpeech NNPS
public static final POSAnnotation.PartOfSpeech PDT
public static final POSAnnotation.PartOfSpeech POS
public static final POSAnnotation.PartOfSpeech PRP
public static final POSAnnotation.PartOfSpeech PRP$
public static final POSAnnotation.PartOfSpeech RB
public static final POSAnnotation.PartOfSpeech RBR
public static final POSAnnotation.PartOfSpeech RBS
public static final POSAnnotation.PartOfSpeech RP
public static final POSAnnotation.PartOfSpeech SYM
public static final POSAnnotation.PartOfSpeech TO
public static final POSAnnotation.PartOfSpeech UH
public static final POSAnnotation.PartOfSpeech VB
public static final POSAnnotation.PartOfSpeech VBD
public static final POSAnnotation.PartOfSpeech VBG
public static final POSAnnotation.PartOfSpeech VBN
public static final POSAnnotation.PartOfSpeech VBP
public static final POSAnnotation.PartOfSpeech VBZ
public static final POSAnnotation.PartOfSpeech WDT
public static final POSAnnotation.PartOfSpeech WP
public static final POSAnnotation.PartOfSpeech WP$
public static final POSAnnotation.PartOfSpeech WRB
public static final POSAnnotation.PartOfSpeech UK
public final String DESCRIPTION
public static POSAnnotation.PartOfSpeech[] values()
for (POSAnnotation.PartOfSpeech c : POSAnnotation.PartOfSpeech.values()) System.out.println(c);
public static POSAnnotation.PartOfSpeech 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 POSAnnotation.PartOfSpeech getPOSfromString(String pennAbreviation)
POSAnnotation.PartOfSpeech
from a string.pennAbreviation
-