📄 dutchstemmer.java
字号:
// This file was generated automatically by the Snowball to Java compilerpackage org.tartarus.snowball.ext;import org.tartarus.snowball.Among; /** * This class was automatically generated by a Snowball to Java compiler * It implements the stemming algorithm defined by a snowball script. */public class dutchStemmer extends org.tartarus.snowball.SnowballStemmer {private static final long serialVersionUID = 1L; private final static dutchStemmer methodObject = new dutchStemmer (); private final static Among a_0[] = { new Among ( "", -1, 6, "", methodObject ), new Among ( "\u00E1", 0, 1, "", methodObject ), new Among ( "\u00E4", 0, 1, "", methodObject ), new Among ( "\u00E9", 0, 2, "", methodObject ), new Among ( "\u00EB", 0, 2, "", methodObject ), new Among ( "\u00ED", 0, 3, "", methodObject ), new Among ( "\u00EF", 0, 3, "", methodObject ), new Among ( "\u00F3", 0, 4, "", methodObject ), new Among ( "\u00F6", 0, 4, "", methodObject ), new Among ( "\u00FA", 0, 5, "", methodObject ), new Among ( "\u00FC", 0, 5, "", methodObject ) }; private final static Among a_1[] = { new Among ( "", -1, 3, "", methodObject ), new Among ( "I", 0, 2, "", methodObject ), new Among ( "Y", 0, 1, "", methodObject ) }; private final static Among a_2[] = { new Among ( "dd", -1, -1, "", methodObject ), new Among ( "kk", -1, -1, "", methodObject ), new Among ( "tt", -1, -1, "", methodObject ) }; private final static Among a_3[] = { new Among ( "ene", -1, 2, "", methodObject ), new Among ( "se", -1, 3, "", methodObject ), new Among ( "en", -1, 2, "", methodObject ), new Among ( "heden", 2, 1, "", methodObject ), new Among ( "s", -1, 3, "", methodObject ) }; private final static Among a_4[] = { new Among ( "end", -1, 1, "", methodObject ), new Among ( "ig", -1, 2, "", methodObject ), new Among ( "ing", -1, 1, "", methodObject ), new Among ( "lijk", -1, 3, "", methodObject ), new Among ( "baar", -1, 4, "", methodObject ), new Among ( "bar", -1, 5, "", methodObject ) }; private final static Among a_5[] = { new Among ( "aa", -1, -1, "", methodObject ), new Among ( "ee", -1, -1, "", methodObject ), new Among ( "oo", -1, -1, "", methodObject ), new Among ( "uu", -1, -1, "", methodObject ) }; private static final char g_v[] = {17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }; private static final char g_v_I[] = {1, 0, 0, 17, 65, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }; private static final char g_v_j[] = {17, 67, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128 }; private int I_p2; private int I_p1; private boolean B_e_found; private void copy_from(dutchStemmer other) { I_p2 = other.I_p2; I_p1 = other.I_p1; B_e_found = other.B_e_found; super.copy_from(other); } private boolean r_prelude() { int among_var; int v_1; int v_2; int v_3; int v_4; int v_5; int v_6; // (, line 41 // test, line 42 v_1 = cursor; // repeat, line 42 replab0: while(true) { v_2 = cursor; lab1: do { // (, line 42 // [, line 43 bra = cursor; // substring, line 43 among_var = find_among(a_0, 11); if (among_var == 0) { break lab1; } // ], line 43 ket = cursor; switch(among_var) { case 0: break lab1; case 1: // (, line 45 // <-, line 45 slice_from("a"); break; case 2: // (, line 47 // <-, line 47 slice_from("e"); break; case 3: // (, line 49 // <-, line 49 slice_from("i"); break; case 4: // (, line 51 // <-, line 51 slice_from("o"); break; case 5: // (, line 53 // <-, line 53 slice_from("u"); break; case 6: // (, line 54 // next, line 54 if (cursor >= limit) { break lab1; } cursor++; break; } continue replab0; } while (false); cursor = v_2; break replab0; } cursor = v_1; // try, line 57 v_3 = cursor; lab2: do { // (, line 57 // [, line 57 bra = cursor; // literal, line 57 if (!(eq_s(1, "y"))) { cursor = v_3; break lab2; } // ], line 57 ket = cursor; // <-, line 57 slice_from("Y"); } while (false); // repeat, line 58 replab3: while(true) { v_4 = cursor; lab4: do { // goto, line 58 golab5: while(true) { v_5 = cursor; lab6: do { // (, line 58 if (!(in_grouping(g_v, 97, 232))) { break lab6; } // [, line 59 bra = cursor; // or, line 59 lab7: do { v_6 = cursor; lab8: do { // (, line 59 // literal, line 59 if (!(eq_s(1, "i"))) { break lab8; } // ], line 59 ket = cursor; if (!(in_grouping(g_v, 97, 232))) { break lab8; } // <-, line 59 slice_from("I"); break lab7; } while (false); cursor = v_6; // (, line 60 // literal, line 60 if (!(eq_s(1, "y"))) { break lab6; } // ], line 60 ket = cursor; // <-, line 60 slice_from("Y"); } while (false); cursor = v_5; break golab5; } while (false); cursor = v_5; if (cursor >= limit) { break lab4; } cursor++; } continue replab3; } while (false); cursor = v_4; break replab3; } return true; } private boolean r_mark_regions() { // (, line 64 I_p1 = limit; I_p2 = limit; // gopast, line 69 golab0: while(true) { lab1: do { if (!(in_grouping(g_v, 97, 232))) { break lab1; } break golab0; } while (false); if (cursor >= limit) { return false; } cursor++; } // gopast, line 69 golab2: while(true) { lab3: do { if (!(out_grouping(g_v, 97, 232))) { break lab3; } break golab2; } while (false); if (cursor >= limit) { return false; } cursor++; } // setmark p1, line 69 I_p1 = cursor; // try, line 70 lab4: do { // (, line 70 if (!(I_p1 < 3)) { break lab4; } I_p1 = 3;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -