📄 hungarianstemmer.java
字号:
// This file was generated automatically by the Snowball to Java compiler
package org.tartarus.snowball.ext;
import org.tartarus.snowball.SnowballProgram;
import org.tartarus.snowball.Among;
/**
* Generated class implementing code defined by a snowball script.
*/
public class hungarianStemmer extends SnowballProgram {
private Among a_0[] = {
new Among ( "cs", -1, -1, "", this),
new Among ( "dzs", -1, -1, "", this),
new Among ( "gy", -1, -1, "", this),
new Among ( "ly", -1, -1, "", this),
new Among ( "ny", -1, -1, "", this),
new Among ( "sz", -1, -1, "", this),
new Among ( "ty", -1, -1, "", this),
new Among ( "zs", -1, -1, "", this)
};
private Among a_1[] = {
new Among ( "\u00E1", -1, 1, "", this),
new Among ( "\u00E9", -1, 2, "", this)
};
private Among a_2[] = {
new Among ( "bb", -1, -1, "", this),
new Among ( "cc", -1, -1, "", this),
new Among ( "dd", -1, -1, "", this),
new Among ( "ff", -1, -1, "", this),
new Among ( "gg", -1, -1, "", this),
new Among ( "jj", -1, -1, "", this),
new Among ( "kk", -1, -1, "", this),
new Among ( "ll", -1, -1, "", this),
new Among ( "mm", -1, -1, "", this),
new Among ( "nn", -1, -1, "", this),
new Among ( "pp", -1, -1, "", this),
new Among ( "rr", -1, -1, "", this),
new Among ( "ccs", -1, -1, "", this),
new Among ( "ss", -1, -1, "", this),
new Among ( "zzs", -1, -1, "", this),
new Among ( "tt", -1, -1, "", this),
new Among ( "vv", -1, -1, "", this),
new Among ( "ggy", -1, -1, "", this),
new Among ( "lly", -1, -1, "", this),
new Among ( "nny", -1, -1, "", this),
new Among ( "tty", -1, -1, "", this),
new Among ( "ssz", -1, -1, "", this),
new Among ( "zz", -1, -1, "", this)
};
private Among a_3[] = {
new Among ( "al", -1, 1, "", this),
new Among ( "el", -1, 2, "", this)
};
private Among a_4[] = {
new Among ( "ba", -1, -1, "", this),
new Among ( "ra", -1, -1, "", this),
new Among ( "be", -1, -1, "", this),
new Among ( "re", -1, -1, "", this),
new Among ( "ig", -1, -1, "", this),
new Among ( "nak", -1, -1, "", this),
new Among ( "nek", -1, -1, "", this),
new Among ( "val", -1, -1, "", this),
new Among ( "vel", -1, -1, "", this),
new Among ( "ul", -1, -1, "", this),
new Among ( "n\u00E1l", -1, -1, "", this),
new Among ( "n\u00E9l", -1, -1, "", this),
new Among ( "b\u00F3l", -1, -1, "", this),
new Among ( "r\u00F3l", -1, -1, "", this),
new Among ( "t\u00F3l", -1, -1, "", this),
new Among ( "b\u00F5l", -1, -1, "", this),
new Among ( "r\u00F5l", -1, -1, "", this),
new Among ( "t\u00F5l", -1, -1, "", this),
new Among ( "\u00FCl", -1, -1, "", this),
new Among ( "n", -1, -1, "", this),
new Among ( "an", 19, -1, "", this),
new Among ( "ban", 20, -1, "", this),
new Among ( "en", 19, -1, "", this),
new Among ( "ben", 22, -1, "", this),
new Among ( "k\u00E9ppen", 22, -1, "", this),
new Among ( "on", 19, -1, "", this),
new Among ( "\u00F6n", 19, -1, "", this),
new Among ( "k\u00E9pp", -1, -1, "", this),
new Among ( "kor", -1, -1, "", this),
new Among ( "t", -1, -1, "", this),
new Among ( "at", 29, -1, "", this),
new Among ( "et", 29, -1, "", this),
new Among ( "k\u00E9nt", 29, -1, "", this),
new Among ( "ank\u00E9nt", 32, -1, "", this),
new Among ( "enk\u00E9nt", 32, -1, "", this),
new Among ( "onk\u00E9nt", 32, -1, "", this),
new Among ( "ot", 29, -1, "", this),
new Among ( "\u00E9rt", 29, -1, "", this),
new Among ( "\u00F6t", 29, -1, "", this),
new Among ( "hez", -1, -1, "", this),
new Among ( "hoz", -1, -1, "", this),
new Among ( "h\u00F6z", -1, -1, "", this),
new Among ( "v\u00E1", -1, -1, "", this),
new Among ( "v\u00E9", -1, -1, "", this)
};
private Among a_5[] = {
new Among ( "\u00E1n", -1, 2, "", this),
new Among ( "\u00E9n", -1, 1, "", this),
new Among ( "\u00E1nk\u00E9nt", -1, 3, "", this)
};
private Among a_6[] = {
new Among ( "stul", -1, 2, "", this),
new Among ( "astul", 0, 1, "", this),
new Among ( "\u00E1stul", 0, 3, "", this),
new Among ( "st\u00FCl", -1, 2, "", this),
new Among ( "est\u00FCl", 3, 1, "", this),
new Among ( "\u00E9st\u00FCl", 3, 4, "", this)
};
private Among a_7[] = {
new Among ( "\u00E1", -1, 1, "", this),
new Among ( "\u00E9", -1, 2, "", this)
};
private Among a_8[] = {
new Among ( "k", -1, 7, "", this),
new Among ( "ak", 0, 4, "", this),
new Among ( "ek", 0, 6, "", this),
new Among ( "ok", 0, 5, "", this),
new Among ( "\u00E1k", 0, 1, "", this),
new Among ( "\u00E9k", 0, 2, "", this),
new Among ( "\u00F6k", 0, 3, "", this)
};
private Among a_9[] = {
new Among ( "\u00E9i", -1, 7, "", this),
new Among ( "\u00E1\u00E9i", 0, 6, "", this),
new Among ( "\u00E9\u00E9i", 0, 5, "", this),
new Among ( "\u00E9", -1, 9, "", this),
new Among ( "k\u00E9", 3, 4, "", this),
new Among ( "ak\u00E9", 4, 1, "", this),
new Among ( "ek\u00E9", 4, 1, "", this),
new Among ( "ok\u00E9", 4, 1, "", this),
new Among ( "\u00E1k\u00E9", 4, 3, "", this),
new Among ( "\u00E9k\u00E9", 4, 2, "", this),
new Among ( "\u00F6k\u00E9", 4, 1, "", this),
new Among ( "\u00E9\u00E9", 3, 8, "", this)
};
private Among a_10[] = {
new Among ( "a", -1, 18, "", this),
new Among ( "ja", 0, 17, "", this),
new Among ( "d", -1, 16, "", this),
new Among ( "ad", 2, 13, "", this),
new Among ( "ed", 2, 13, "", this),
new Among ( "od", 2, 13, "", this),
new Among ( "\u00E1d", 2, 14, "", this),
new Among ( "\u00E9d", 2, 15, "", this),
new Among ( "\u00F6d", 2, 13, "", this),
new Among ( "e", -1, 18, "", this),
new Among ( "je", 9, 17, "", this),
new Among ( "nk", -1, 4, "", this),
new Among ( "unk", 11, 1, "", this),
new Among ( "\u00E1nk", 11, 2, "", this),
new Among ( "\u00E9nk", 11, 3, "", this),
new Among ( "\u00FCnk", 11, 1, "", this),
new Among ( "uk", -1, 8, "", this),
new Among ( "juk", 16, 7, "", this),
new Among ( "\u00E1juk", 17, 5, "", this),
new Among ( "\u00FCk", -1, 8, "", this),
new Among ( "j\u00FCk", 19, 7, "", this),
new Among ( "\u00E9j\u00FCk", 20, 6, "", this),
new Among ( "m", -1, 12, "", this),
new Among ( "am", 22, 9, "", this),
new Among ( "em", 22, 9, "", this),
new Among ( "om", 22, 9, "", this),
new Among ( "\u00E1m", 22, 10, "", this),
new Among ( "\u00E9m", 22, 11, "", this),
new Among ( "o", -1, 18, "", this),
new Among ( "\u00E1", -1, 19, "", this),
new Among ( "\u00E9", -1, 20, "", this)
};
private Among a_11[] = {
new Among ( "id", -1, 10, "", this),
new Among ( "aid", 0, 9, "", this),
new Among ( "jaid", 1, 6, "", this),
new Among ( "eid", 0, 9, "", this),
new Among ( "jeid", 3, 6, "", this),
new Among ( "\u00E1id", 0, 7, "", this),
new Among ( "\u00E9id", 0, 8, "", this),
new Among ( "i", -1, 15, "", this),
new Among ( "ai", 7, 14, "", this),
new Among ( "jai", 8, 11, "", this),
new Among ( "ei", 7, 14, "", this),
new Among ( "jei", 10, 11, "", this),
new Among ( "\u00E1i", 7, 12, "", this),
new Among ( "\u00E9i", 7, 13, "", this),
new Among ( "itek", -1, 24, "", this),
new Among ( "eitek", 14, 21, "", this),
new Among ( "jeitek", 15, 20, "", this),
new Among ( "\u00E9itek", 14, 23, "", this),
new Among ( "ik", -1, 29, "", this),
new Among ( "aik", 18, 26, "", this),
new Among ( "jaik", 19, 25, "", this),
new Among ( "eik", 18, 26, "", this),
new Among ( "jeik", 21, 25, "", this),
new Among ( "\u00E1ik", 18, 27, "", this),
new Among ( "\u00E9ik", 18, 28, "", this),
new Among ( "ink", -1, 20, "", this),
new Among ( "aink", 25, 17, "", this),
new Among ( "jaink", 26, 16, "", this),
new Among ( "eink", 25, 17, "", this),
new Among ( "jeink", 28, 16, "", this),
new Among ( "\u00E1ink", 25, 18, "", this),
new Among ( "\u00E9ink", 25, 19, "", this),
new Among ( "aitok", -1, 21, "", this),
new Among ( "jaitok", 32, 20, "", this),
new Among ( "\u00E1itok", -1, 22, "", this),
new Among ( "im", -1, 5, "", this),
new Among ( "aim", 35, 4, "", this),
new Among ( "jaim", 36, 1, "", this),
new Among ( "eim", 35, 4, "", this),
new Among ( "jeim", 38, 1, "", this),
new Among ( "\u00E1im", 35, 2, "", this),
new Among ( "\u00E9im", 35, 3, "", this)
};
private static final char g_v[] = {17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 17, 52, 14 };
private int I_p1;
private void copy_from(hungarianStemmer other) {
I_p1 = other.I_p1;
super.copy_from(other);
}
private boolean r_mark_regions() {
int v_1;
int v_2;
int v_3;
// (, line 44
I_p1 = limit;
// or, line 51
lab0: do {
v_1 = cursor;
lab1: do {
// (, line 48
if (!(in_grouping(g_v, 97, 252)))
{
break lab1;
}
// goto, line 48
golab2: while(true)
{
v_2 = cursor;
lab3: do {
if (!(out_grouping(g_v, 97, 252)))
{
break lab3;
}
cursor = v_2;
break golab2;
} while (false);
cursor = v_2;
if (cursor >= limit)
{
break lab1;
}
cursor++;
}
// or, line 49
lab4: do {
v_3 = cursor;
lab5: do {
// among, line 49
if (find_among(a_0, 8) == 0)
{
break lab5;
}
break lab4;
} while (false);
cursor = v_3;
// next, line 49
if (cursor >= limit)
{
break lab1;
}
cursor++;
} while (false);
// setmark p1, line 50
I_p1 = cursor;
break lab0;
} while (false);
cursor = v_1;
// (, line 53
if (!(out_grouping(g_v, 97, 252)))
{
return false;
}
// gopast, line 53
golab6: while(true)
{
lab7: do {
if (!(in_grouping(g_v, 97, 252)))
{
break lab7;
}
break golab6;
} while (false);
if (cursor >= limit)
{
return false;
}
cursor++;
}
// setmark p1, line 53
I_p1 = cursor;
} while (false);
return true;
}
private boolean r_R1() {
if (!(I_p1 <= cursor))
{
return false;
}
return true;
}
private boolean r_v_ending() {
int among_var;
// (, line 60
// [, line 61
ket = cursor;
// substring, line 61
among_var = find_among_b(a_1, 2);
if (among_var == 0)
{
return false;
}
// ], line 61
bra = cursor;
// call R1, line 61
if (!r_R1())
{
return false;
}
switch(among_var) {
case 0:
return false;
case 1:
// (, line 62
// <-, line 62
slice_from("a");
break;
case 2:
// (, line 63
// <-, line 63
slice_from("e");
break;
}
return true;
}
private boolean r_double() {
int v_1;
// (, line 67
// test, line 68
v_1 = limit - cursor;
// among, line 68
if (find_among_b(a_2, 23) == 0)
{
return false;
}
cursor = limit - v_1;
return true;
}
private boolean r_undouble() {
// (, line 72
// next, line 73
if (cursor <= limit_backward)
{
return false;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -