public class POS extends Object implements Serializable
String
names of POS tags into
discrete integer values.Modifier and Type | Field and Description |
---|---|
static POS |
CC
POS object representing the "coordinating conjunction" tag. |
static POS |
CD
POS object representing the "cardinal number" tag. |
static POS |
closeDoubleQuote
POS object representing the "close double quote" tag. |
static POS |
colon
POS object representing the "(semi-)colon" tag. |
static POS |
comma
POS object representing the "comma" tag. |
static POS |
dollar
POS object representing the "dollar sign" tag. |
static POS |
DT
POS object representing the "determiner" tag. |
static POS |
EX
POS object representing the "existential there" tag. |
static POS |
FW
POS object representing the "foreign word" tag. |
static POS |
IN
POS object representing the "preposition" tag. |
static POS |
JJ
POS object representing the "adjective" tag. |
static POS |
JJR
POS object representing the "comparative adjective" tag. |
static POS |
JJS
POS object representing the "superlative adjective" tag. |
static POS |
leftBracket
POS object representing the "left bracket" tag. |
static POS |
LS
POS object representing the "list item marker" tag. |
static POS |
MD
POS object representing the "modal" tag. |
static String[] |
names
An array of all names of part of speech tags.
|
static POS |
NN
POS object representing the "singular noun" tag. |
static POS |
NNP
POS object representing the "proper singular noun" tag. |
static POS |
NNPS
POS object representing the "proper plural noun" tag. |
static POS |
NNS
POS object representing the "plural noun" tag. |
static POS |
openDoubleQuote
POS object representing the "open double quote" tag. |
static POS |
PDT
POS object representing the "predeterminer" tag. |
static POS |
period
POS object representing the "final punctuation" tag. |
static POS |
POS
POS object representing the "possesive ending" tag. |
static POS |
pound
POS object representing the "pound sign" tag. |
static POS |
PRP
POS object representing the "personal pronoun" tag. |
static POS |
PRP_DOLLAR
POS object representing the "possessive pronoun" tag. |
static POS |
RB
POS object representing the "adverb" tag. |
static POS |
RBR
POS object representing the "comparative adverb" tag. |
static POS |
RBS
POS object representing the "superlative adverb" tag. |
static POS |
rightBracket
POS object representing the "right bracket" tag. |
static POS |
RP
POS object representing the "particle" tag. |
static POS |
SYM
POS object representing the "symbol" tag. |
static POS |
TO
POS object representing the "to" tag. |
static String[] |
tokens
An array of all tokens that represent parts of speech as found in
corpora.
|
static POS |
UH
POS object representing the "interjection" tag. |
static POS |
VB
POS object representing the "base form verb" tag. |
static POS |
VBD
POS object representing the "verb past tense" tag. |
static POS |
VBG
POS object representing the "verb gerund / present
participle" tag. |
static POS |
VBN
POS object representing the "verb past participle" tag. |
static POS |
VBP
POS object representing the "verb non 3rd ps sing present"
tag. |
static POS |
VBZ
POS object representing the "verb 3rd ps sing present" tag. |
static POS |
WDT
POS object representing the "wh-determiner" tag. |
static POS |
WP
POS object representing the "wh-pronoun" tag. |
static POS |
WP_DOLLAR
POS object representing the "possesive wh-pronoun" tag. |
static POS |
WRB
POS object representing the "wh-adverb" tag. |
Constructor and Description |
---|
POS(int v)
Constructor that initializes the
value variable. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Two
POS objects are equal iff their value
variables are equal. |
static POS |
fromToken(String s)
Converts a token to the
POS object that represents the same
part of speech. |
int |
getValue()
Returns the integer used to represent this part of speech tag.
|
int |
hashCode()
Simply returns the
value variable. |
String |
toString()
Returns the name of the part of speech represented by this object.
|
String |
toToken()
Returns the token that represents the same part of speech.
|
static String |
toToken(POS tag)
Converts a
POS object to the token that represents the same
part of speech. |
public static final String[] names
public static final String[] tokens
public static final POS pound
POS
object representing the "pound sign" tag.public static final POS dollar
POS
object representing the "dollar sign" tag.public static final POS openDoubleQuote
POS
object representing the "open double quote" tag.public static final POS closeDoubleQuote
POS
object representing the "close double quote" tag.public static final POS comma
POS
object representing the "comma" tag.public static final POS leftBracket
POS
object representing the "left bracket" tag.public static final POS rightBracket
POS
object representing the "right bracket" tag.public static final POS period
POS
object representing the "final punctuation" tag.public static final POS colon
POS
object representing the "(semi-)colon" tag.public static final POS CC
POS
object representing the "coordinating conjunction" tag.public static final POS CD
POS
object representing the "cardinal number" tag.public static final POS DT
POS
object representing the "determiner" tag.public static final POS EX
POS
object representing the "existential there" tag.public static final POS FW
POS
object representing the "foreign word" tag.public static final POS IN
POS
object representing the "preposition" tag.public static final POS JJ
POS
object representing the "adjective" tag.public static final POS JJR
POS
object representing the "comparative adjective" tag.public static final POS JJS
POS
object representing the "superlative adjective" tag.public static final POS LS
POS
object representing the "list item marker" tag.public static final POS MD
POS
object representing the "modal" tag.public static final POS NN
POS
object representing the "singular noun" tag.public static final POS NNP
POS
object representing the "proper singular noun" tag.public static final POS NNPS
POS
object representing the "proper plural noun" tag.public static final POS NNS
POS
object representing the "plural noun" tag.public static final POS PDT
POS
object representing the "predeterminer" tag.public static final POS POS
POS
object representing the "possesive ending" tag.public static final POS PRP
POS
object representing the "personal pronoun" tag.public static final POS PRP_DOLLAR
POS
object representing the "possessive pronoun" tag.public static final POS RB
POS
object representing the "adverb" tag.public static final POS RBR
POS
object representing the "comparative adverb" tag.public static final POS RBS
POS
object representing the "superlative adverb" tag.public static final POS RP
POS
object representing the "particle" tag.public static final POS SYM
POS
object representing the "symbol" tag.public static final POS TO
POS
object representing the "to" tag.public static final POS UH
POS
object representing the "interjection" tag.public static final POS VB
POS
object representing the "base form verb" tag.public static final POS VBD
POS
object representing the "verb past tense" tag.public static final POS VBG
POS
object representing the "verb gerund / present
participle" tag.public static final POS VBN
POS
object representing the "verb past participle" tag.public static final POS VBP
POS
object representing the "verb non 3rd ps sing present"
tag.public static final POS VBZ
POS
object representing the "verb 3rd ps sing present" tag.public static final POS WDT
POS
object representing the "wh-determiner" tag.public static final POS WP
POS
object representing the "wh-pronoun" tag.public static final POS WP_DOLLAR
POS
object representing the "possesive wh-pronoun" tag.public static final POS WRB
POS
object representing the "wh-adverb" tag.public POS(int v)
value
variable. This
constructor should never be called, since all possible parts of speech
are numerated by name as public static final
variables.v
- The value of the new part of speech object.public String toString()
public String toToken()
public int getValue()
public boolean equals(Object o)
POS
objects are equal iff their value
variables are equal.public int hashCode()
value
variable.public static String toToken(POS tag)
POS
object to the token that represents the same
part of speech.tag
- The POS
object to convert.Copyright © 2017. All rights reserved.