|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkr.ac.kaist.swrc.jhannanum.plugin.MajorPlugin.MorphAnalyzer.ChartMorphAnalyzer.SegmentPosition
public class SegmentPosition
This class is for segmentation of morphemes in a given eojeol.
Nested Class Summary | |
---|---|
class |
SegmentPosition.Position
This class marks the position of segmentation. |
Field Summary | |
---|---|
static int |
MAX_MORPHEME_COUNT
the maximum number of morphemes possible |
static int |
MAX_SEGMENT
the maximum number of segmentation |
private SegmentPosition.Position[] |
position
the list of segment positions |
static char |
POSITION_START_KEY
the key of the start node for data structure |
private int |
positionEnd
the last index of the segment position |
static int |
SP_STATE_D
the processing state - expansion regarding phoneme change phenomenon |
static int |
SP_STATE_F
the processing state - failure |
static int |
SP_STATE_M
the processing state - connection rule |
static int |
SP_STATE_N
the processing state - dictionary search |
static int |
SP_STATE_R
the processing state - recursive processing |
Constructor Summary | |
---|---|
SegmentPosition()
Constructor. |
Method Summary | |
---|---|
int |
addPosition(char key)
Adds new segment position. |
SegmentPosition.Position |
getPosition(int index)
Gets the segment position on the specified index. |
void |
init(java.lang.String str,
Simti simti)
Initializes the data structure for segment positions with given string. |
int |
nextPosition(int index)
Returns the index of the next segment position of the position on the specified index. |
void |
printPosition()
It prints the segment position information to the console. |
int |
setPositionLink(int prevIndex,
int nextIndex)
It connects two segment positions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int MAX_SEGMENT
public static final int MAX_MORPHEME_COUNT
public static final int SP_STATE_N
public static final int SP_STATE_D
public static final int SP_STATE_R
public static final int SP_STATE_M
public static final int SP_STATE_F
public static final char POSITION_START_KEY
private SegmentPosition.Position[] position
private int positionEnd
Constructor Detail |
---|
public SegmentPosition()
Method Detail |
---|
public int addPosition(char key)
key
- - vowel or consonant of the segment position
public SegmentPosition.Position getPosition(int index)
index
- - the index of the segment position
public void init(java.lang.String str, Simti simti)
str
- - the plain string to analyzesimti
- - SIMple Trie Indexpublic int nextPosition(int index)
index
- - the index of the segment position
public void printPosition()
public int setPositionLink(int prevIndex, int nextIndex)
prevIndex
- - the index of the previous positionnextIndex
- - the index of the next position
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |