📄 italianstemmer.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 ItalianStemmer extends SnowballProgram { private Among a_0[] = { new Among ( "", -1, 7, "", this), new Among ( "qu", 0, 6, "", this), new Among ( "\u00E1", 0, 1, "", this), new Among ( "\u00E9", 0, 2, "", this), new Among ( "\u00ED", 0, 3, "", this), new Among ( "\u00F3", 0, 4, "", this), new Among ( "\u00FA", 0, 5, "", this) }; private Among a_1[] = { new Among ( "", -1, 3, "", this), new Among ( "I", 0, 1, "", this), new Among ( "U", 0, 2, "", this) }; private Among a_2[] = { new Among ( "la", -1, -1, "", this), new Among ( "cela", 0, -1, "", this), new Among ( "gliela", 0, -1, "", this), new Among ( "mela", 0, -1, "", this), new Among ( "tela", 0, -1, "", this), new Among ( "vela", 0, -1, "", this), new Among ( "le", -1, -1, "", this), new Among ( "cele", 6, -1, "", this), new Among ( "gliele", 6, -1, "", this), new Among ( "mele", 6, -1, "", this), new Among ( "tele", 6, -1, "", this), new Among ( "vele", 6, -1, "", this), new Among ( "ne", -1, -1, "", this), new Among ( "cene", 12, -1, "", this), new Among ( "gliene", 12, -1, "", this), new Among ( "mene", 12, -1, "", this), new Among ( "sene", 12, -1, "", this), new Among ( "tene", 12, -1, "", this), new Among ( "vene", 12, -1, "", this), new Among ( "ci", -1, -1, "", this), new Among ( "li", -1, -1, "", this), new Among ( "celi", 20, -1, "", this), new Among ( "glieli", 20, -1, "", this), new Among ( "meli", 20, -1, "", this), new Among ( "teli", 20, -1, "", this), new Among ( "veli", 20, -1, "", this), new Among ( "gli", 20, -1, "", this), new Among ( "mi", -1, -1, "", this), new Among ( "si", -1, -1, "", this), new Among ( "ti", -1, -1, "", this), new Among ( "vi", -1, -1, "", this), new Among ( "lo", -1, -1, "", this), new Among ( "celo", 31, -1, "", this), new Among ( "glielo", 31, -1, "", this), new Among ( "melo", 31, -1, "", this), new Among ( "telo", 31, -1, "", this), new Among ( "velo", 31, -1, "", this) }; private Among a_3[] = { new Among ( "ando", -1, 1, "", this), new Among ( "endo", -1, 1, "", this), new Among ( "ar", -1, 2, "", this), new Among ( "er", -1, 2, "", this), new Among ( "ir", -1, 2, "", this) }; private Among a_4[] = { new Among ( "ic", -1, -1, "", this), new Among ( "abil", -1, -1, "", this), new Among ( "os", -1, -1, "", this), new Among ( "iv", -1, 1, "", this) }; private Among a_5[] = { new Among ( "ic", -1, 1, "", this), new Among ( "abil", -1, 1, "", this), new Among ( "iv", -1, 1, "", this) }; private Among a_6[] = { new Among ( "ica", -1, 1, "", this), new Among ( "logia", -1, 3, "", this), new Among ( "osa", -1, 1, "", this), new Among ( "ista", -1, 1, "", this), new Among ( "iva", -1, 9, "", this), new Among ( "anza", -1, 1, "", this), new Among ( "enza", -1, 5, "", this), new Among ( "ice", -1, 1, "", this), new Among ( "atrice", 7, 1, "", this), new Among ( "iche", -1, 1, "", this), new Among ( "logie", -1, 3, "", this), new Among ( "abile", -1, 1, "", this), new Among ( "ibile", -1, 1, "", this), new Among ( "usione", -1, 4, "", this), new Among ( "azione", -1, 2, "", this), new Among ( "uzione", -1, 4, "", this), new Among ( "atore", -1, 2, "", this), new Among ( "ose", -1, 1, "", this), new Among ( "mente", -1, 1, "", this), new Among ( "amente", 18, 7, "", this), new Among ( "iste", -1, 1, "", this), new Among ( "ive", -1, 9, "", this), new Among ( "anze", -1, 1, "", this), new Among ( "enze", -1, 5, "", this), new Among ( "ici", -1, 1, "", this), new Among ( "atrici", 24, 1, "", this), new Among ( "ichi", -1, 1, "", this), new Among ( "abili", -1, 1, "", this), new Among ( "ibili", -1, 1, "", this), new Among ( "ismi", -1, 1, "", this), new Among ( "usioni", -1, 4, "", this), new Among ( "azioni", -1, 2, "", this), new Among ( "uzioni", -1, 4, "", this), new Among ( "atori", -1, 2, "", this), new Among ( "osi", -1, 1, "", this), new Among ( "amenti", -1, 6, "", this), new Among ( "imenti", -1, 6, "", this), new Among ( "isti", -1, 1, "", this), new Among ( "ivi", -1, 9, "", this), new Among ( "ico", -1, 1, "", this), new Among ( "ismo", -1, 1, "", this), new Among ( "oso", -1, 1, "", this), new Among ( "amento", -1, 6, "", this), new Among ( "imento", -1, 6, "", this), new Among ( "ivo", -1, 9, "", this), new Among ( "it\u00E0", -1, 8, "", this), new Among ( "ist\u00E0", -1, 1, "", this), new Among ( "ist\u00E8", -1, 1, "", this), new Among ( "ist\u00EC", -1, 1, "", this) }; private Among a_7[] = { new Among ( "isca", -1, 1, "", this), new Among ( "enda", -1, 1, "", this), new Among ( "ata", -1, 1, "", this), new Among ( "ita", -1, 1, "", this), new Among ( "uta", -1, 1, "", this), new Among ( "ava", -1, 1, "", this), new Among ( "eva", -1, 1, "", this), new Among ( "iva", -1, 1, "", this), new Among ( "erebbe", -1, 1, "", this), new Among ( "irebbe", -1, 1, "", this), new Among ( "isce", -1, 1, "", this), new Among ( "ende", -1, 1, "", this), new Among ( "are", -1, 1, "", this), new Among ( "ere", -1, 1, "", this), new Among ( "ire", -1, 1, "", this), new Among ( "asse", -1, 1, "", this), new Among ( "ate", -1, 1, "", this), new Among ( "avate", 16, 1, "", this), new Among ( "evate", 16, 1, "", this), new Among ( "ivate", 16, 1, "", this), new Among ( "ete", -1, 1, "", this), new Among ( "erete", 20, 1, "", this), new Among ( "irete", 20, 1, "", this), new Among ( "ite", -1, 1, "", this), new Among ( "ereste", -1, 1, "", this), new Among ( "ireste", -1, 1, "", this), new Among ( "ute", -1, 1, "", this), new Among ( "erai", -1, 1, "", this), new Among ( "irai", -1, 1, "", this), new Among ( "isci", -1, 1, "", this), new Among ( "endi", -1, 1, "", this), new Among ( "erei", -1, 1, "", this), new Among ( "irei", -1, 1, "", this), new Among ( "assi", -1, 1, "", this), new Among ( "ati", -1, 1, "", this), new Among ( "iti", -1, 1, "", this), new Among ( "eresti", -1, 1, "", this), new Among ( "iresti", -1, 1, "", this), new Among ( "uti", -1, 1, "", this), new Among ( "avi", -1, 1, "", this), new Among ( "evi", -1, 1, "", this), new Among ( "ivi", -1, 1, "", this), new Among ( "isco", -1, 1, "", this), new Among ( "ando", -1, 1, "", this), new Among ( "endo", -1, 1, "", this), new Among ( "Yamo", -1, 1, "", this), new Among ( "iamo", -1, 1, "", this), new Among ( "avamo", -1, 1, "", this), new Among ( "evamo", -1, 1, "", this), new Among ( "ivamo", -1, 1, "", this), new Among ( "eremo", -1, 1, "", this), new Among ( "iremo", -1, 1, "", this), new Among ( "assimo", -1, 1, "", this), new Among ( "ammo", -1, 1, "", this), new Among ( "emmo", -1, 1, "", this), new Among ( "eremmo", 54, 1, "", this), new Among ( "iremmo", 54, 1, "", this), new Among ( "immo", -1, 1, "", this), new Among ( "ano", -1, 1, "", this), new Among ( "iscano", 58, 1, "", this), new Among ( "avano", 58, 1, "", this), new Among ( "evano", 58, 1, "", this), new Among ( "ivano", 58, 1, "", this), new Among ( "eranno", -1, 1, "", this), new Among ( "iranno", -1, 1, "", this), new Among ( "ono", -1, 1, "", this), new Among ( "iscono", 65, 1, "", this), new Among ( "arono", 65, 1, "", this), new Among ( "erono", 65, 1, "", this), new Among ( "irono", 65, 1, "", this), new Among ( "erebbero", -1, 1, "", this), new Among ( "irebbero", -1, 1, "", this), new Among ( "assero", -1, 1, "", this), new Among ( "essero", -1, 1, "", this), new Among ( "issero", -1, 1, "", this), new Among ( "ato", -1, 1, "", this), new Among ( "ito", -1, 1, "", this), new Among ( "uto", -1, 1, "", this), new Among ( "avo", -1, 1, "", this), new Among ( "evo", -1, 1, "", this), new Among ( "ivo", -1, 1, "", this), new Among ( "ar", -1, 1, "", this), new Among ( "ir", -1, 1, "", this), new Among ( "er\u00E0", -1, 1, "", this), new Among ( "ir\u00E0", -1, 1, "", this), new Among ( "er\u00F2", -1, 1, "", this), new Among ( "ir\u00F2", -1, 1, "", this) }; private static final char g_v[] = {17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 128, 8, 2, 1 }; private static final char g_AEIO[] = {17, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 128, 8, 2 }; private static final char g_CG[] = {17 }; private int I_p2; private int I_p1; private int I_pV; private void copy_from(ItalianStemmer other) { I_p2 = other.I_p2; I_p1 = other.I_p1; I_pV = other.I_pV; 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; // (, line 34 // test, line 35 v_1 = cursor; // repeat, line 35 replab0: while(true) { v_2 = cursor; lab1: do { // (, line 35 // [, line 36 bra = cursor; // substring, line 36 among_var = find_among(a_0, 7); if (among_var == 0) { break lab1; } // ], line 36 ket = cursor; switch(among_var) { case 0: break lab1; case 1: // (, line 37 // <-, line 37 slice_from("\u00E0"); break; case 2: // (, line 38 // <-, line 38 slice_from("\u00E8"); break; case 3: // (, line 39 // <-, line 39 slice_from("\u00EC"); break; case 4: // (, line 40 // <-, line 40 slice_from("\u00F2"); break; case 5: // (, line 41 // <-, line 41 slice_from("\u00F9"); break; case 6: // (, line 42 // <-, line 42 slice_from("qU"); break; case 7: // (, line 43 // next, line 43 if (cursor >= limit) { break lab1; } cursor++; break; } continue replab0; } while (false); cursor = v_2; break replab0; } cursor = v_1; // repeat, line 46 replab2: while(true) { v_3 = cursor; lab3: do { // goto, line 46 golab4: while(true) { v_4 = cursor; lab5: do { // (, line 46 if (!(in_grouping(g_v, 97, 249))) { break lab5; } // [, line 47 bra = cursor; // or, line 47 lab6: do { v_5 = cursor; lab7: do { // (, line 47 // literal, line 47 if (!(eq_s(1, "u"))) { break lab7; } // ], line 47 ket = cursor; if (!(in_grouping(g_v, 97, 249))) { break lab7; } // <-, line 47 slice_from("U"); break lab6; } while (false); cursor = v_5; // (, line 48 // literal, line 48 if (!(eq_s(1, "i"))) { break lab5; } // ], line 48 ket = cursor; if (!(in_grouping(g_v, 97, 249))) { break lab5; } // <-, line 48 slice_from("I"); } while (false); cursor = v_4; break golab4; } while (false); cursor = v_4; if (cursor >= limit) { break lab3; } cursor++; } continue replab2; } while (false); cursor = v_3; break replab2; } return true; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -