deeppavlov/models/spelling_correction/levenshtein/levenshtein_searcher.py
def inverse(self):
        """
        Строит пробразователь, задающий обратное конечное преобразование
        """
        # УПРОСТИТЬ ОБРАЩЕНИЕ!!!
        inversed_transducer = SegmentTransducer(self.alphabet, operation_costs=dict())
        inversed_transducer.operation_costs = self._reversed_operation_costs
        inversed_transducer._reversed_operation_costs = self.operation_costs
        inversed_transducer.max_low_length = self.max_up_length
        inversed_transducer.max_up_length = self.max_low_length
        inversed_transducer.max_low_lengths_by_up = self.max_up_lengths_by_low
        inversed_transducer.max_up_lengths_by_low = self.max_low_lengths_by_up
        return inversed_transducer
def inverse(self):
        """
        Строит пробразователь, задающий обратное конечное преобразование
        """
        # УПРОСТИТЬ ОБРАЩЕНИЕ!!!
        inversed_transducer = SegmentTransducer(self.alphabet, operation_costs=dict())
        inversed_transducer.operation_costs = self._reversed_operation_costs
        inversed_transducer._reversed_operation_costs = self.operation_costs
        inversed_transducer.max_low_length = self.max_up_length
        inversed_transducer.max_up_length = self.max_low_length
        inversed_transducer.max_low_lengths_by_up = self.max_up_lengths_by_low
        inversed_transducer.max_up_lengths_by_low = self.max_low_lengths_by_up
        return inversed_transducer
def inverse ( self ) : # УПРОСТИТЬ ОБРАЩЕНИЕ!!! inversed_transducer = SegmentTransducer ( self . alphabet , operation_costs = dict ( ) ) inversed_transducer . operation_costs = self . _reversed_operation_costs inversed_transducer . _reversed_operation_costs = self . operation_costs inversed_transducer . max_low_length = self . max_up_length inversed_transducer . max_up_length = self . max_low_length inversed_transducer . max_low_lengths_by_up = self . max_up_lengths_by_low inversed_transducer . max_up_lengths_by_low = self . max_low_lengths_by_up return inversed_transducer
Строит пробразователь, задающий обратное конечное преобразование
Строит пробразователь задающий обратное конечное преобразование