How to use the snowballstemmer.italian_stemmer.ItalianStemmer function in snowballstemmer

To help you get started, we’ve selected a few snowballstemmer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shibukawa / snowball_py / snowballstemmer / italian_stemmer.py View on Github external
try:
                while True:
                    try:
                        if not self.in_grouping(ItalianStemmer.g_v, 97, 249):
                            raise lab19()
                        raise lab18()
                    except lab19: pass
                    if self.cursor >= self.limit:
                        raise lab13()
                    self.cursor += 1
            except lab18: pass
            # gopast, line 66
            try:
                while True:
                    try:
                        if not self.out_grouping(ItalianStemmer.g_v, 97, 249):
                            raise lab21()
                        raise lab20()
                    except lab21: pass
                    if self.cursor >= self.limit:
                        raise lab13()
                    self.cursor += 1
            except lab20: pass
            # setmark p2, line 66
            self.I_p2 = self.cursor
        except lab13: pass
        self.cursor = v_8
        return True
github shibukawa / snowball_py / snowballstemmer / __init__.py View on Github external
from .portuguese_stemmer import PortugueseStemmer
from .romanian_stemmer import RomanianStemmer
from .russian_stemmer import RussianStemmer
from .spanish_stemmer import SpanishStemmer
from .swedish_stemmer import SwedishStemmer
from .turkish_stemmer import TurkishStemmer

_languages = {
    'danish': DanishStemmer,
    'dutch': DutchStemmer,
    'english': EnglishStemmer,
    'finnish': FinnishStemmer,
    'french': FrenchStemmer,
    'german': GermanStemmer,
    'hungarian': HungarianStemmer,
    'italian': ItalianStemmer,
    'norwegian': NorwegianStemmer,
    'porter': PorterStemmer,
    'portuguese': PortugueseStemmer,
    'romanian': RomanianStemmer,
    'russian': RussianStemmer,
    'spanish': SpanishStemmer,
    'swedish': SwedishStemmer,
    'turkish': TurkishStemmer,
}

try:
    import Stemmer
    cext_available = True
except ImportError:
    cext_available = False
github shibukawa / snowball_py / snowballstemmer / italian_stemmer.py View on Github external
def r_standard_suffix(self):
        # (, line 103
        # [, line 104
        self.ket = self.cursor
        # substring, line 104
        among_var = self.find_among_b(ItalianStemmer.a_6, 51)
        if among_var == 0:
            return False
        # ], line 104
        self.bra = self.cursor
        if among_var == 0:
            return False
        elif among_var == 1:
            # (, line 111
            # call R2, line 111
            if not self.r_R2():
                return False
            # delete, line 111
            if not self.slice_del():
                return False

        elif among_var == 2:
github shibukawa / snowball_py / snowballstemmer / italian_stemmer.py View on Github external
def r_prelude(self):
        # (, line 34
        # test, line 35
        v_1 = self.cursor
        # repeat, line 35
        try:
            while True:
                try:
                    v_2 = self.cursor
                    try:
                        # (, line 35
                        # [, line 36
                        self.bra = self.cursor
                        # substring, line 36
                        among_var = self.find_among(ItalianStemmer.a_0, 7)
                        if among_var == 0:
                            raise lab2()
                        # ], line 36
                        self.ket = self.cursor
                        if among_var == 0:
                            raise lab2()
                        elif among_var == 1:
                            # (, line 37
                            # <-, line 37
                            if not self.slice_from(u"\u00E0"):
                                return False
                        elif among_var == 2:
                            # (, line 38
                            # <-, line 38
                            if not self.slice_from(u"\u00E8"):
                                return False
github shibukawa / snowball_py / snowballstemmer / italian_stemmer.py View on Github external
# (, line 133
            # call R2, line 134
            if not self.r_R2():
                return False
            # delete, line 134
            if not self.slice_del():
                return False

            # try, line 135
            v_3 = self.limit - self.cursor
            try:
                # (, line 135
                # [, line 136
                self.ket = self.cursor
                # substring, line 136
                among_var = self.find_among_b(ItalianStemmer.a_5, 3)
                if among_var == 0:
                    self.cursor = self.limit - v_3
                    raise lab2()
                # ], line 136
                self.bra = self.cursor
                if among_var == 0:
                    self.cursor = self.limit - v_3
                    raise lab2()
                elif among_var == 1:
                    # (, line 137
                    # call R2, line 137
                    if not self.r_R2():
                        self.cursor = self.limit - v_3
                        raise lab2()
                    # delete, line 137
                    if not self.slice_del():
github shibukawa / snowball_py / snowballstemmer / italian_stemmer.py View on Github external
def r_vowel_suffix(self):
        # (, line 170
        # try, line 171
        v_1 = self.limit - self.cursor
        try:
            # (, line 171
            # [, line 172
            self.ket = self.cursor
            if not self.in_grouping_b(ItalianStemmer.g_AEIO, 97, 242):
                self.cursor = self.limit - v_1
                raise lab0()
            # ], line 172
            self.bra = self.cursor
            # call RV, line 172
            if not self.r_RV():
                self.cursor = self.limit - v_1
                raise lab0()
            # delete, line 172
            if not self.slice_del():
                return False

            # [, line 173
            self.ket = self.cursor
            # literal, line 173
            if not self.eq_s_b(1, u"i"):
github shibukawa / snowball_py / snowballstemmer / italian_stemmer.py View on Github external
def equals(self, o):
        return isinstance(o, ItalianStemmer)
github shibukawa / snowball_py / snowballstemmer / italian_stemmer.py View on Github external
def r_attached_pronoun(self):
        # (, line 86
        # [, line 87
        self.ket = self.cursor
        # substring, line 87
        if self.find_among_b(ItalianStemmer.a_2, 37) == 0:
            return False
        # ], line 87
        self.bra = self.cursor
        # among, line 97
        among_var = self.find_among_b(ItalianStemmer.a_3, 5)
        if among_var == 0:
            return False
        # (, line 97
        # call RV, line 97
        if not self.r_RV():
            return False
        if among_var == 0:
            return False
        elif among_var == 1:
            # (, line 98
            # delete, line 98
github shibukawa / snowball_py / snowballstemmer / italian_stemmer.py View on Github external
def r_attached_pronoun(self):
        # (, line 86
        # [, line 87
        self.ket = self.cursor
        # substring, line 87
        if self.find_among_b(ItalianStemmer.a_2, 37) == 0:
            return False
        # ], line 87
        self.bra = self.cursor
        # among, line 97
        among_var = self.find_among_b(ItalianStemmer.a_3, 5)
        if among_var == 0:
            return False
        # (, line 97
        # call RV, line 97
        if not self.r_RV():
            return False
        if among_var == 0:
            return False
        elif among_var == 1:
            # (, line 98
            # delete, line 98
            if not self.slice_del():
                return False

        elif among_var == 2:
            # (, line 99
github shibukawa / snowball_py / snowballstemmer / italian_stemmer.py View on Github external
def r_postlude(self):
        # repeat, line 70
        try:
            while True:
                try:
                    v_1 = self.cursor
                    try:
                        # (, line 70
                        # [, line 72
                        self.bra = self.cursor
                        # substring, line 72
                        among_var = self.find_among(ItalianStemmer.a_1, 3)
                        if among_var == 0:
                            raise lab2()
                        # ], line 72
                        self.ket = self.cursor
                        if among_var == 0:
                            raise lab2()
                        elif among_var == 1:
                            # (, line 73
                            # <-, line 73
                            if not self.slice_from(u"i"):
                                return False
                        elif among_var == 2:
                            # (, line 74
                            # <-, line 74
                            if not self.slice_from(u"u"):
                                return False