|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.utils.corpuslinguistics.adornedword.BaseAdornedWord
public class BaseAdornedWord
A word adorned with addition morphological information.
An AdornedWord
represents a single word spelling,
symbol, or punctuation mark in text.
An adorned word records the following information.
| Field Summary | |
|---|---|
protected java.lang.String |
lemmata
Lemmata for spelling. |
protected java.lang.String |
partsOfSpeech
Parts of speech for spelling. |
protected java.lang.String |
spelling
Corrected spelling. |
protected java.lang.String |
standardSpelling
Standardized spelling. |
protected java.lang.String |
token
Token form of spelling. |
protected int |
tokenType
Token type. |
| Constructor Summary | |
|---|---|
BaseAdornedWord()
Create an empty adorned word. |
|
BaseAdornedWord(AdornedWord adornedWord)
Create a adorned word from another adorned word. |
|
BaseAdornedWord(java.lang.String spelling)
Create adorned word from a spelling. |
|
BaseAdornedWord(java.lang.String spelling,
java.lang.String partOfSpeech)
Create adorned word from a spelling and a part of speech. |
|
BaseAdornedWord(java.lang.String token,
java.lang.String spelling,
java.lang.String partOfSpeech)
Create adorned word from a token, spelling, and part of speech. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Return a shallow cloned copy of this object. |
int |
compareTo(java.lang.Object object)
Compare this key with another. |
boolean |
equals(java.lang.Object object)
Check if another object is equal to this one. |
java.lang.String |
getLemmata()
Get the lemmata. |
java.lang.String |
getPartsOfSpeech()
Get the parts of speech. |
java.lang.String |
getSpelling()
Get the spelling. |
java.lang.String |
getStandardSpelling()
Get the standard spelling. |
java.lang.String |
getToken()
Get the original token. |
int |
getTokenType()
Get the token type. |
int |
hashCode()
Get the hash code of the keys. |
void |
setLemmata(java.lang.String lemmata)
Set the lemmata. |
void |
setPartsOfSpeech(java.lang.String partsOfSpeech)
Set the parts of speech. |
void |
setSpelling(java.lang.String spelling)
Set the spelling. |
void |
setStandardSpelling(java.lang.String standardSpelling)
Set the standard spelling. |
void |
setToken(java.lang.String token)
Set the original token. |
void |
setTokenType(int tokenType)
Set the token type. |
java.lang.String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String token
protected java.lang.String spelling
protected java.lang.String standardSpelling
protected java.lang.String lemmata
protected java.lang.String partsOfSpeech
protected int tokenType
| Constructor Detail |
|---|
public BaseAdornedWord()
public BaseAdornedWord(java.lang.String spelling)
spelling - The spelling.
The token, the spelling, and the standard spelling are all set the the spelling parameter value.
public BaseAdornedWord(java.lang.String spelling,
java.lang.String partOfSpeech)
spelling - The spelling.partOfSpeech - The part of speech.
public BaseAdornedWord(java.lang.String token,
java.lang.String spelling,
java.lang.String partOfSpeech)
token - The token.spelling - The spelling.partOfSpeech - The part of speech.public BaseAdornedWord(AdornedWord adornedWord)
adornedWord - A adorned word.| Method Detail |
|---|
public java.lang.String getToken()
getToken in interface AdornedWordpublic void setToken(java.lang.String token)
setToken in interface AdornedWordtoken - The original token.public java.lang.String getSpelling()
getSpelling in interface AdornedWordpublic void setSpelling(java.lang.String spelling)
setSpelling in interface AdornedWordspelling - The spelling.public java.lang.String getStandardSpelling()
getStandardSpelling in interface AdornedWordpublic void setStandardSpelling(java.lang.String standardSpelling)
setStandardSpelling in interface AdornedWordstandardSpelling - The standard spelling.public java.lang.String getLemmata()
getLemmata in interface AdornedWordCompound lemmata are separated by a separator tring.
public void setLemmata(java.lang.String lemmata)
setLemmata in interface AdornedWordlemmata - The lemmata.public java.lang.String getPartsOfSpeech()
getPartsOfSpeech in interface AdornedWordpublic void setPartsOfSpeech(java.lang.String partsOfSpeech)
setPartsOfSpeech in interface AdornedWordpartsOfSpeech - The parts of speech, separated by
a tag set dependent separator
string.public int getTokenType()
getTokenType in interface AdornedWordpublic void setTokenType(int tokenType)
setTokenType in interface AdornedWordtokenType - The token type.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - Other object to test for equality.
Two word objects are equal if their spellings, lemmata, and parts of speech are equal.
public int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparableobject - The other CompoundKey.
Two word objects are compared first on their spellings, then their lemmata, and finally their parts of speech.
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in interface XCloneableclone in class java.lang.Objectjava.lang.CloneNotSupportedException - which should never happen.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||