📄 kpstemmer.java
字号:
// This file was generated automatically by the Snowball to Java compilerpackage net.sf.snowball.ext;import net.sf.snowball.SnowballProgram;import net.sf.snowball.Among;/** * Generated class implementing code defined by a snowball script. */public class KpStemmer extends SnowballProgram { private Among a_0[] = { new Among ( "nde", -1, 7, "", this), new Among ( "en", -1, 6, "", this), new Among ( "s", -1, 2, "", this), new Among ( "'s", 2, 1, "", this), new Among ( "es", 2, 4, "", this), new Among ( "ies", 4, 3, "", this), new Among ( "aus", 2, 5, "", this) }; private Among a_1[] = { new Among ( "de", -1, 5, "", this), new Among ( "ge", -1, 2, "", this), new Among ( "ische", -1, 4, "", this), new Among ( "je", -1, 1, "", this), new Among ( "lijke", -1, 3, "", this), new Among ( "le", -1, 9, "", this), new Among ( "ene", -1, 10, "", this), new Among ( "re", -1, 8, "", this), new Among ( "se", -1, 7, "", this), new Among ( "te", -1, 6, "", this), new Among ( "ieve", -1, 11, "", this) }; private Among a_2[] = { new Among ( "heid", -1, 3, "", this), new Among ( "fie", -1, 7, "", this), new Among ( "gie", -1, 8, "", this), new Among ( "atie", -1, 1, "", this), new Among ( "isme", -1, 5, "", this), new Among ( "ing", -1, 5, "", this), new Among ( "arij", -1, 6, "", this), new Among ( "erij", -1, 5, "", this), new Among ( "sel", -1, 3, "", this), new Among ( "rder", -1, 4, "", this), new Among ( "ster", -1, 3, "", this), new Among ( "iteit", -1, 2, "", this), new Among ( "dst", -1, 10, "", this), new Among ( "tst", -1, 9, "", this) }; private Among a_3[] = { new Among ( "end", -1, 10, "", this), new Among ( "atief", -1, 2, "", this), new Among ( "erig", -1, 10, "", this), new Among ( "achtig", -1, 9, "", this), new Among ( "ioneel", -1, 1, "", this), new Among ( "baar", -1, 3, "", this), new Among ( "laar", -1, 5, "", this), new Among ( "naar", -1, 4, "", this), new Among ( "raar", -1, 6, "", this), new Among ( "eriger", -1, 10, "", this), new Among ( "achtiger", -1, 9, "", this), new Among ( "lijker", -1, 8, "", this), new Among ( "tant", -1, 7, "", this), new Among ( "erigst", -1, 10, "", this), new Among ( "achtigst", -1, 9, "", this), new Among ( "lijkst", -1, 8, "", this) }; private Among a_4[] = { new Among ( "ig", -1, 1, "", this), new Among ( "iger", -1, 1, "", this), new Among ( "igst", -1, 1, "", this) }; private Among a_5[] = { new Among ( "ft", -1, 2, "", this), new Among ( "kt", -1, 1, "", this), new Among ( "pt", -1, 3, "", this) }; private Among a_6[] = { new Among ( "bb", -1, 1, "", this), new Among ( "cc", -1, 2, "", this), new Among ( "dd", -1, 3, "", this), new Among ( "ff", -1, 4, "", this), new Among ( "gg", -1, 5, "", this), new Among ( "hh", -1, 6, "", this), new Among ( "jj", -1, 7, "", this), new Among ( "kk", -1, 8, "", this), new Among ( "ll", -1, 9, "", this), new Among ( "mm", -1, 10, "", this), new Among ( "nn", -1, 11, "", this), new Among ( "pp", -1, 12, "", this), new Among ( "qq", -1, 13, "", this), new Among ( "rr", -1, 14, "", this), new Among ( "ss", -1, 15, "", this), new Among ( "tt", -1, 16, "", this), new Among ( "v", -1, 21, "", this), new Among ( "vv", 16, 17, "", this), new Among ( "ww", -1, 18, "", this), new Among ( "xx", -1, 19, "", this), new Among ( "z", -1, 22, "", this), new Among ( "zz", 20, 20, "", this) }; private Among a_7[] = { new Among ( "d", -1, 1, "", this), new Among ( "t", -1, 2, "", this) }; private static final char g_v[] = {17, 65, 16, 1 }; private static final char g_v_WX[] = {17, 65, 208, 1 }; private static final char g_AOU[] = {1, 64, 16 }; private static final char g_AIOU[] = {1, 65, 16 }; private boolean B_GE_removed; private boolean B_stemmed; private boolean B_Y_found; private int I_p2; private int I_p1; private int I_x; private StringBuffer S_ch = new StringBuffer(); private void copy_from(KpStemmer other) { B_GE_removed = other.B_GE_removed; B_stemmed = other.B_stemmed; B_Y_found = other.B_Y_found; I_p2 = other.I_p2; I_p1 = other.I_p1; I_x = other.I_x; S_ch = other.S_ch; super.copy_from(other); } private boolean r_R1() { // (, line 32 // setmark x, line 32 I_x = cursor; if (!(I_x >= I_p1)) { return false; } return true; } private boolean r_R2() { // (, line 33 // setmark x, line 33 I_x = cursor; if (!(I_x >= I_p2)) { return false; } return true; } private boolean r_V() { int v_1; int v_2; // test, line 35 v_1 = limit - cursor; // (, line 35 // or, line 35 lab0: do { v_2 = limit - cursor; lab1: do { if (!(in_grouping_b(g_v, 97, 121))) { break lab1; } break lab0; } while (false); cursor = limit - v_2; // literal, line 35 if (!(eq_s_b(2, "ij"))) { return false; } } while (false); cursor = limit - v_1; return true; } private boolean r_VX() { int v_1; int v_2; // test, line 36 v_1 = limit - cursor; // (, line 36 // next, line 36 if (cursor <= limit_backward) { return false; } cursor--; // or, line 36 lab0: do { v_2 = limit - cursor; lab1: do { if (!(in_grouping_b(g_v, 97, 121))) { break lab1; } break lab0; } while (false); cursor = limit - v_2; // literal, line 36 if (!(eq_s_b(2, "ij"))) { return false; } } while (false); cursor = limit - v_1; return true; } private boolean r_C() { int v_1; int v_2; // test, line 37 v_1 = limit - cursor; // (, line 37 // not, line 37 { v_2 = limit - cursor; lab0: do { // literal, line 37 if (!(eq_s_b(2, "ij"))) { break lab0; } return false; } while (false); cursor = limit - v_2; } if (!(out_grouping_b(g_v, 97, 121))) { return false; } cursor = limit - v_1; return true; } private boolean r_lengthen_V() { int v_1; int v_2; int v_3; int v_4; int v_5; int v_6; int v_7; int v_8; // do, line 39 v_1 = limit - cursor; lab0: do { // (, line 39 if (!(out_grouping_b(g_v_WX, 97, 121))) { break lab0; } // [, line 40 ket = cursor; // or, line 40 lab1: do { v_2 = limit - cursor; lab2: do { // (, line 40 if (!(in_grouping_b(g_AOU, 97, 117))) { break lab2; } // ], line 40 bra = cursor; // test, line 40 v_3 = limit - cursor; // (, line 40 // or, line 40 lab3: do { v_4 = limit - cursor; lab4: do { if (!(out_grouping_b(g_v, 97, 121))) { break lab4; } break lab3; } while (false); cursor = limit - v_4; // atlimit, line 40 if (cursor > limit_backward) { break lab2; } } while (false); cursor = limit - v_3; break lab1; } while (false); cursor = limit - v_2; // (, line 41 // literal, line 41 if (!(eq_s_b(1, "e"))) { break lab0; } // ], line 41 bra = cursor; // test, line 41 v_5 = limit - cursor; // (, line 41 // or, line 41 lab5: do { v_6 = limit - cursor; lab6: do { if (!(out_grouping_b(g_v, 97, 121))) { break lab6; } break lab5; } while (false); cursor = limit - v_6; // atlimit, line 41 if (cursor > limit_backward) { break lab0; } } while (false); // not, line 42 { v_7 = limit - cursor; lab7: do { if (!(in_grouping_b(g_AIOU, 97, 117))) { break lab7; } break lab0; } while (false); cursor = limit - v_7; } // not, line 43 { v_8 = limit - cursor; lab8: do { // (, line 43 // next, line 43 if (cursor <= limit_backward) { break lab8; } cursor--; if (!(in_grouping_b(g_AIOU, 97, 117))) { break lab8; } if (!(out_grouping_b(g_v, 97, 121))) { break lab8; } break lab0; } while (false); cursor = limit - v_8; } cursor = limit - v_5; } while (false); // -> ch, line 44 S_ch = slice_to(S_ch); // <+ ch, line 44 { int c = cursor; insert(cursor, cursor, S_ch); cursor = c; } } while (false); cursor = limit - v_1; return true; } private boolean r_Step_1() { int among_var; int v_1; int v_2; int v_3; int v_4; // (, line 48 // [, line 49
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -