|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectnet.java.sen.dictionary.Morpheme
public class Morpheme
A class representing part-of-speech data for a morpheme. When created during
the analysis of a string, a Morpheme is built as a lazy proxy onto the
Dictionary's part-of-speech file. Once created, a Morpheme can
be altered without changing the underlying data (if any)
Thread Safety: Objects of this class are NOT thread safe and should not be accessed simultaneously by multiple threads.
CAUTION: Morphemes are implemented as lazy proxies onto a
Dictionary, and care should be taken not to access the same
Dictionary from multiple threads. Once any member of a
Morpheme has been read, its link to the Dictionary is broken
and this restriction is relaxed
| コンストラクタの概要 | |
|---|---|
Morpheme()
Creates a blank, modifiable Morpheme that does not link
to any Dictionary |
|
Morpheme(Dictionary dictionary,
int partOfSpeechIndex)
Builds a lazy proxy onto a part-of-speech stored in a Dictionary |
|
Morpheme(java.lang.String partOfSpeech,
java.lang.String conjugationalType,
java.lang.String conjugationalForm,
java.lang.String basicForm,
java.lang.String[] readings,
java.lang.String[] pronunciations,
java.lang.String additionalInformation)
Creates a literal Morpheme that does not link to any
Dictionary |
|
| メソッドの概要 | |
|---|---|
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getAdditionalInformation()
Gets the additional information string |
java.lang.String |
getBasicForm()
Gets the unconjugated form of the morpheme |
java.lang.String |
getConjugationalForm()
Gets the conjugation form of the morpheme |
java.lang.String |
getConjugationalType()
Gets the conjugation type of the morpheme |
java.lang.String |
getPartOfSpeech()
Gets the part-of-speech in Chasen format |
java.util.List<java.lang.String> |
getPronunciations()
Gets the pronunciations of the morpheme |
java.util.List<java.lang.String> |
getReadings()
Gets the readings of the morpheme |
void |
setAdditionalInformation(java.lang.String additionalInformation)
Sets an arbitrary string of additional information |
void |
setBasicForm(java.lang.String basicString)
Sets the unconjugated form of the morpheme |
void |
setConjugationalForm(java.lang.String conjugationalForm)
Sets the conjugation form of the morpheme |
void |
setConjugationalType(java.lang.String conjugationalType)
Sets the conjugation type of the morpheme |
void |
setPartOfSpeech(java.lang.String partOfSpeech)
Sets the part-of-speech |
void |
setPronunciations(java.util.List<java.lang.String> pronunciations)
Sets the pronunciation of the morpheme |
void |
setReadings(java.util.List<java.lang.String> readings)
Sets the readings of the morpheme |
java.lang.String |
toString()
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public Morpheme(Dictionary dictionary,
int partOfSpeechIndex)
dictionary - The dicationary to proxy uponpartOfSpeechIndex - The index into the part-of-speech file
public Morpheme(java.lang.String partOfSpeech,
java.lang.String conjugationalType,
java.lang.String conjugationalForm,
java.lang.String basicForm,
java.lang.String[] readings,
java.lang.String[] pronunciations,
java.lang.String additionalInformation)
Morpheme that does not link to any
Dictionary
partOfSpeech - The Chasen-format part-of-speechconjugationalType - The conjugational typeconjugationalForm - The conjugational formbasicForm - The unconjugated formreadings - The readingspronunciations - The pronunciationsadditionalInformation - Arbitrary additional informationpublic Morpheme()
Morpheme that does not link
to any Dictionary
| メソッドの詳細 |
|---|
public java.lang.String getConjugationalType()
public void setConjugationalType(java.lang.String conjugationalType)
conjugationalType - The conjugation typepublic java.lang.String getConjugationalForm()
public void setConjugationalForm(java.lang.String conjugationalForm)
conjugationalForm - The conjugation formpublic java.lang.String getBasicForm()
public void setBasicForm(java.lang.String basicString)
basicString - The unconjugated formpublic java.util.List<java.lang.String> getReadings()
public void setReadings(java.util.List<java.lang.String> readings)
readings - The readingspublic java.util.List<java.lang.String> getPronunciations()
public void setPronunciations(java.util.List<java.lang.String> pronunciations)
pronunciations - the pronunciationspublic java.lang.String getPartOfSpeech()
public void setPartOfSpeech(java.lang.String partOfSpeech)
partOfSpeech - The part-of-speechpublic java.lang.String getAdditionalInformation()
public void setAdditionalInformation(java.lang.String additionalInformation)
additionalInformation - The additional information to setpublic boolean equals(java.lang.Object object)
java.lang.Object 内の equalspublic java.lang.String toString()
java.lang.Object 内の toString
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||