コード例 #1
0
    def __init__(self, agglutinative):

        MARKER_DOT = u'.'
        FlexAutomaton.__init__(self, empty=MARKER_DOT)

        self.paradigms = {}
        self.pMetrics = {}
        self.prefixes = {}  # inflection -> set(subsequences). ATTENTION: this parameter is set from the outside!
        self.nullFlex = {}

        self.lens = {}

        self.agglutinative = agglutinative
コード例 #2
0
    def __init__(self):
        PREFIX_AUTOMATON_MARKER = u'#'
        self.contents = {}

        FlexAutomaton.__init__(self, empty=PREFIX_AUTOMATON_MARKER)