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 islands_ok(self, value):
     if not isinstance(value, bool):
         raise TypeError("islands_ok must be set to a bool")
     clg.parse_options_set_islands_ok(self._obj, 1 if value else 0)
Example #3
0
 def islands_ok(self, value):
     if not isinstance(value, bool):
         raise TypeError("islands_ok must be set to a bool")
     clg.parse_options_set_islands_ok(self._obj, 1 if value else 0)