Example #1
0
def set_opts():
    """
    Настройка параметров парсера
    """
    clg.parse_options_set_max_null_count(parse_opts,6)
    clg.parse_options_set_display_morphology(parse_opts,0)
    clg.parse_options_set_islands_ok(parse_opts, True)
    clg.parse_options_set_linkage_limit(parse_opts,10)
    clg.parse_options_set_disjunct_cost(parse_opts, 2)
Example #2
0
 def disjunct_cost(self, value):
     if not isinstance(value, float):
         raise TypeError("Distjunct cost must be set to a float")
     clg.parse_options_set_disjunct_cost(self._obj, value)
Example #3
0
 def disjunct_cost(self, value):
     if not isinstance(value, float):
         raise TypeError("Distjunct cost must be set to a float")
     clg.parse_options_set_disjunct_cost(self._obj, value)