📄 turkishstemmer.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 turkishStemmer extends org.tartarus.snowball.SnowballStemmer {private static final long serialVersionUID = 1L; private final static turkishStemmer methodObject = new turkishStemmer (); private final static Among a_0[] = { new Among ( "m", -1, -1, "", methodObject ), new Among ( "n", -1, -1, "", methodObject ), new Among ( "miz", -1, -1, "", methodObject ), new Among ( "niz", -1, -1, "", methodObject ), new Among ( "muz", -1, -1, "", methodObject ), new Among ( "nuz", -1, -1, "", methodObject ), new Among ( "m\u00FCz", -1, -1, "", methodObject ), new Among ( "n\u00FCz", -1, -1, "", methodObject ), new Among ( "m\u0131z", -1, -1, "", methodObject ), new Among ( "n\u0131z", -1, -1, "", methodObject ) }; private final static Among a_1[] = { new Among ( "leri", -1, -1, "", methodObject ), new Among ( "lar\u0131", -1, -1, "", methodObject ) }; private final static Among a_2[] = { new Among ( "ni", -1, -1, "", methodObject ), new Among ( "nu", -1, -1, "", methodObject ), new Among ( "n\u00FC", -1, -1, "", methodObject ), new Among ( "n\u0131", -1, -1, "", methodObject ) }; private final static Among a_3[] = { new Among ( "in", -1, -1, "", methodObject ), new Among ( "un", -1, -1, "", methodObject ), new Among ( "\u00FCn", -1, -1, "", methodObject ), new Among ( "\u0131n", -1, -1, "", methodObject ) }; private final static Among a_4[] = { new Among ( "a", -1, -1, "", methodObject ), new Among ( "e", -1, -1, "", methodObject ) }; private final static Among a_5[] = { new Among ( "na", -1, -1, "", methodObject ), new Among ( "ne", -1, -1, "", methodObject ) }; private final static Among a_6[] = { new Among ( "da", -1, -1, "", methodObject ), new Among ( "ta", -1, -1, "", methodObject ), new Among ( "de", -1, -1, "", methodObject ), new Among ( "te", -1, -1, "", methodObject ) }; private final static Among a_7[] = { new Among ( "nda", -1, -1, "", methodObject ), new Among ( "nde", -1, -1, "", methodObject ) }; private final static Among a_8[] = { new Among ( "dan", -1, -1, "", methodObject ), new Among ( "tan", -1, -1, "", methodObject ), new Among ( "den", -1, -1, "", methodObject ), new Among ( "ten", -1, -1, "", methodObject ) }; private final static Among a_9[] = { new Among ( "ndan", -1, -1, "", methodObject ), new Among ( "nden", -1, -1, "", methodObject ) }; private final static Among a_10[] = { new Among ( "la", -1, -1, "", methodObject ), new Among ( "le", -1, -1, "", methodObject ) }; private final static Among a_11[] = { new Among ( "ca", -1, -1, "", methodObject ), new Among ( "ce", -1, -1, "", methodObject ) }; private final static Among a_12[] = { new Among ( "im", -1, -1, "", methodObject ), new Among ( "um", -1, -1, "", methodObject ), new Among ( "\u00FCm", -1, -1, "", methodObject ), new Among ( "\u0131m", -1, -1, "", methodObject ) }; private final static Among a_13[] = { new Among ( "sin", -1, -1, "", methodObject ), new Among ( "sun", -1, -1, "", methodObject ), new Among ( "s\u00FCn", -1, -1, "", methodObject ), new Among ( "s\u0131n", -1, -1, "", methodObject ) }; private final static Among a_14[] = { new Among ( "iz", -1, -1, "", methodObject ), new Among ( "uz", -1, -1, "", methodObject ), new Among ( "\u00FCz", -1, -1, "", methodObject ), new Among ( "\u0131z", -1, -1, "", methodObject ) }; private final static Among a_15[] = { new Among ( "siniz", -1, -1, "", methodObject ), new Among ( "sunuz", -1, -1, "", methodObject ), new Among ( "s\u00FCn\u00FCz", -1, -1, "", methodObject ), new Among ( "s\u0131n\u0131z", -1, -1, "", methodObject ) }; private final static Among a_16[] = { new Among ( "lar", -1, -1, "", methodObject ), new Among ( "ler", -1, -1, "", methodObject ) }; private final static Among a_17[] = { new Among ( "niz", -1, -1, "", methodObject ), new Among ( "nuz", -1, -1, "", methodObject ), new Among ( "n\u00FCz", -1, -1, "", methodObject ), new Among ( "n\u0131z", -1, -1, "", methodObject ) }; private final static Among a_18[] = { new Among ( "dir", -1, -1, "", methodObject ), new Among ( "tir", -1, -1, "", methodObject ), new Among ( "dur", -1, -1, "", methodObject ), new Among ( "tur", -1, -1, "", methodObject ), new Among ( "d\u00FCr", -1, -1, "", methodObject ), new Among ( "t\u00FCr", -1, -1, "", methodObject ), new Among ( "d\u0131r", -1, -1, "", methodObject ), new Among ( "t\u0131r", -1, -1, "", methodObject ) }; private final static Among a_19[] = { new Among ( "cas\u0131na", -1, -1, "", methodObject ), new Among ( "cesine", -1, -1, "", methodObject ) }; private final static Among a_20[] = { new Among ( "di", -1, -1, "", methodObject ), new Among ( "ti", -1, -1, "", methodObject ), new Among ( "dik", -1, -1, "", methodObject ), new Among ( "tik", -1, -1, "", methodObject ), new Among ( "duk", -1, -1, "", methodObject ), new Among ( "tuk", -1, -1, "", methodObject ), new Among ( "d\u00FCk", -1, -1, "", methodObject ), new Among ( "t\u00FCk", -1, -1, "", methodObject ), new Among ( "d\u0131k", -1, -1, "", methodObject ), new Among ( "t\u0131k", -1, -1, "", methodObject ), new Among ( "dim", -1, -1, "", methodObject ), new Among ( "tim", -1, -1, "", methodObject ), new Among ( "dum", -1, -1, "", methodObject ), new Among ( "tum", -1, -1, "", methodObject ), new Among ( "d\u00FCm", -1, -1, "", methodObject ), new Among ( "t\u00FCm", -1, -1, "", methodObject ), new Among ( "d\u0131m", -1, -1, "", methodObject ), new Among ( "t\u0131m", -1, -1, "", methodObject ), new Among ( "din", -1, -1, "", methodObject ), new Among ( "tin", -1, -1, "", methodObject ), new Among ( "dun", -1, -1, "", methodObject ), new Among ( "tun", -1, -1, "", methodObject ), new Among ( "d\u00FCn", -1, -1, "", methodObject ), new Among ( "t\u00FCn", -1, -1, "", methodObject ), new Among ( "d\u0131n", -1, -1, "", methodObject ), new Among ( "t\u0131n", -1, -1, "", methodObject ), new Among ( "du", -1, -1, "", methodObject ), new Among ( "tu", -1, -1, "", methodObject ), new Among ( "d\u00FC", -1, -1, "", methodObject ), new Among ( "t\u00FC", -1, -1, "", methodObject ), new Among ( "d\u0131", -1, -1, "", methodObject ), new Among ( "t\u0131", -1, -1, "", methodObject ) }; private final static Among a_21[] = { new Among ( "sa", -1, -1, "", methodObject ), new Among ( "se", -1, -1, "", methodObject ), new Among ( "sak", -1, -1, "", methodObject ), new Among ( "sek", -1, -1, "", methodObject ), new Among ( "sam", -1, -1, "", methodObject ), new Among ( "sem", -1, -1, "", methodObject ), new Among ( "san", -1, -1, "", methodObject ), new Among ( "sen", -1, -1, "", methodObject ) }; private final static Among a_22[] = { new Among ( "mi\u015F", -1, -1, "", methodObject ), new Among ( "mu\u015F", -1, -1, "", methodObject ), new Among ( "m\u00FC\u015F", -1, -1, "", methodObject ), new Among ( "m\u0131\u015F", -1, -1, "", methodObject ) }; private final static Among a_23[] = { new Among ( "b", -1, 1, "", methodObject ), new Among ( "c", -1, 2, "", methodObject ), new Among ( "d", -1, 3, "", methodObject ), new Among ( "\u011F", -1, 4, "", methodObject ) }; private static final char g_vowel[] = {17, 65, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 8, 0, 0, 0, 0, 0, 0, 1 }; private static final char g_U[] = {1, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 1 }; private static final char g_vowel1[] = {1, 64, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; private static final char g_vowel2[] = {17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130 }; private static final char g_vowel3[] = {1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; private static final char g_vowel4[] = {17 }; private static final char g_vowel5[] = {65 }; private static final char g_vowel6[] = {65 }; private boolean B_continue_stemming_noun_suffixes; private int I_strlen; private void copy_from(turkishStemmer other) { B_continue_stemming_noun_suffixes = other.B_continue_stemming_noun_suffixes; I_strlen = other.I_strlen; super.copy_from(other); } private boolean r_check_vowel_harmony() { int v_1; int v_2; int v_3; int v_4; int v_5; int v_6; int v_7; int v_8; int v_9; int v_10; int v_11; // (, line 111 // test, line 112 v_1 = limit - cursor; // (, line 113 // (, line 114 // goto, line 114 golab0: while(true) { v_2 = limit - cursor; lab1: do { if (!(in_grouping_b(g_vowel, 97, 305))) { break lab1; } cursor = limit - v_2; break golab0; } while (false); cursor = limit - v_2; if (cursor <= limit_backward) { return false; } cursor--; } // (, line 115 // or, line 116 lab2: do { v_3 = limit - cursor; lab3: do { // (, line 116 // literal, line 116 if (!(eq_s_b(1, "a"))) { break lab3; } // goto, line 116 golab4: while(true) { v_4 = limit - cursor; lab5: do { if (!(in_grouping_b(g_vowel1, 97, 305))) { break lab5; } cursor = limit - v_4; break golab4; } while (false); cursor = limit - v_4; if (cursor <= limit_backward) { break lab3; } cursor--; } break lab2; } while (false); cursor = limit - v_3; lab6: do { // (, line 117 // literal, line 117 if (!(eq_s_b(1, "e"))) { break lab6; } // goto, line 117 golab7: while(true) { v_5 = limit - cursor; lab8: do { if (!(in_grouping_b(g_vowel2, 101, 252)))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -