|
||||||||||
| 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.Exp
public class Exp
This class for expansion of morphological analysis regarding rules such as elision, contractions, and irregular rules.
| Field Summary | |
|---|---|
private MorphemeChart |
mc
The lattice style morpheme chart |
private java.lang.String[][] |
pset
The list for expansion rules. |
private int |
pset_end
The last index of pset |
private TagSet |
tagSet
Morpheme tag set |
| Constructor Summary | |
|---|---|
Exp(MorphemeChart mc,
TagSet tagSet)
Constructor. |
|
| Method Summary | |
|---|---|
private java.lang.String |
insert(java.lang.String str1,
int cur,
java.lang.String str2)
Inserts the string str2 to the specified position of the string str1. |
private int |
pcheck(java.lang.String base,
int idx,
java.lang.String rule)
It checks pset whether the rule is applied to the specified index of given string. |
void |
prule(int from,
java.lang.String str1,
java.lang.String str2,
SegmentPosition sp)
Check the rules on the given string, and expand the morpheme chart. |
private java.lang.String |
replace(java.lang.String str1,
int cur,
java.lang.String str2)
Replaces the character at the specified position of the string str1 with the first character of the string str2. |
private void |
rule_eomi_u(int from,
java.lang.String prev,
java.lang.String str,
int cur)
It expands the morpheme chart regarding the elision rule '으', '스', '느'. |
private void |
rule_gut(int from,
java.lang.String prev,
java.lang.String str,
int cur)
It expands the morpheme chart regarding the rules about '것'. |
private void |
rule_i(int from,
java.lang.String prev,
java.lang.String str,
int cur)
It expands the morpheme chart regarding the rule '이'. |
private void |
rule_irr_word(int from,
java.lang.String prev,
java.lang.String str,
int cur)
It expands the morpheme chart regarding the irregular rules about 'ㄷ', 'ㅅ', 'ㅂ', 'ㅎ', '르', '러'. |
private void |
rule_irr_word2(int from,
java.lang.String prev,
java.lang.String str,
int cur)
It expands the morpheme chart regarding the irregular rules about '우', '여'. |
private void |
rule_johwa(int from,
java.lang.String prev,
java.lang.String str,
int cur)
It expands the morpheme chart regarding the vowel harmony rules. |
private void |
rule_NP(int from,
java.lang.String prev,
java.lang.String str)
It expands the morpheme chart regarding the rules about personal pronoun. |
private void |
rule_rem(int from,
java.lang.String prev,
java.lang.String str,
int cur)
It expands the morpheme chart regarding the elision rules about 'ㄹ', 'ㅡ', 'ㅏ', 'ㅓ'. |
private void |
rule_shorten(int from,
java.lang.String prev,
java.lang.String str,
int cur)
It expands the morpheme chart regarding the contration rules about 'ㅗ', 'ㅜ', 'ㅚ', 'ㅣ'. |
private int |
strcmp(java.lang.String s1,
int i1,
java.lang.String s2,
int i2)
C style string compare method. |
private int |
strncmp(java.lang.String s1,
int i1,
java.lang.String s2,
int i2,
int len)
C style string compare method for the specified length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int pset_end
private MorphemeChart mc
private TagSet tagSet
private java.lang.String[][] pset
| Constructor Detail |
|---|
public Exp(MorphemeChart mc,
TagSet tagSet)
mc - - the lattice style morpheme charttagSet - - morpheme tag set| Method Detail |
|---|
private java.lang.String insert(java.lang.String str1,
int cur,
java.lang.String str2)
str1 - - the string where the other string is going to be insertedcur - - the index of the str1 for insertionstr2 - - the string to insert
private int pcheck(java.lang.String base,
int idx,
java.lang.String rule)
base - - the string to checkidx - - the index of the stringrule - - the name of the rule to check
public void prule(int from,
java.lang.String str1,
java.lang.String str2,
SegmentPosition sp)
from - - the index for the start of segment positionstr1 - - the front part of the stringstr2 - - the next part of the stringsp - - the segment position
private java.lang.String replace(java.lang.String str1,
int cur,
java.lang.String str2)
str1 - - base stringcur - - index of the character tostr2 - - the first character of the string is used to replace
private void rule_eomi_u(int from,
java.lang.String prev,
java.lang.String str,
int cur)
from - - the start index for the segment positionprev - - the passed part of the stringstr - - the next part of the string to checkcur - - the current index of the string for checking the rules
private void rule_gut(int from,
java.lang.String prev,
java.lang.String str,
int cur)
from - - the start index for the segment positionprev - - the passed part of the stringstr - - the next part of the string to checkcur - - the current index of the string for checking the rules
private void rule_i(int from,
java.lang.String prev,
java.lang.String str,
int cur)
from - - the start index for the segment positionprev - - the passed part of the stringstr - - the next part of the string to checkcur - - the current index of the string for checking the rules
private void rule_irr_word(int from,
java.lang.String prev,
java.lang.String str,
int cur)
from - - the start index for the segment positionprev - - the passed part of the stringstr - - the next part of the string to checkcur - - the current index of the string for checking the rules
private void rule_irr_word2(int from,
java.lang.String prev,
java.lang.String str,
int cur)
from - - the start index for the segment positionprev - - the passed part of the stringstr - - the next part of the string to checkcur - - the current index of the string for checking the rules
private void rule_johwa(int from,
java.lang.String prev,
java.lang.String str,
int cur)
from - - the start index for the segment positionprev - - the passed part of the stringstr - - the next part of the string to checkcur - - the current index of the string for checking the rules
private void rule_NP(int from,
java.lang.String prev,
java.lang.String str)
from - - the start index for the segment positionprev - - the passed part of the stringstr - - the next part of the string to check
private void rule_rem(int from,
java.lang.String prev,
java.lang.String str,
int cur)
from - - the start index for the segment positionprev - - the passed part of the stringstr - - the next part of the string to checkcur - - the current index of the string for checking the rules
private void rule_shorten(int from,
java.lang.String prev,
java.lang.String str,
int cur)
from - - the start index for the segment positionprev - - the passed part of the stringstr - - the next part of the string to checkcur - - the current index of the string for checking the rules
private int strcmp(java.lang.String s1,
int i1,
java.lang.String s2,
int i2)
s1 - - string 1i1 - - start index of string 1 for comparings2 - - string 2i2 - - strart index of string 2 for comparing
private int strncmp(java.lang.String s1,
int i1,
java.lang.String s2,
int i2,
int len)
s1 - - string 1i1 - - start index of string 1 for comparings2 - - string 2i2 - - strart index of string 2 for comparinglen - - the number of characters to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||