예제 #1
0
 def spell_guess(self, value):
     """
      The value is the maximum number of spell corrections per word.
      If non-zero, unlimited run-on corrections will be issued too.
     """
     if not isinstance(value, int):
         raise TypeError("spell_guess must be set to an integer")
     clg.parse_options_set_spell_guess(self._obj, value)
예제 #2
0
 def spell_guess(self, value):
     """
      The value is the maximum number of spell corrections per word.
      If non-zero, unlimited run-on corrections will be issued too.
     """
     if not isinstance(value, int):
         raise TypeError("spell_guess must be set to an integer")
     clg.parse_options_set_spell_guess(self._obj, value)
예제 #3
0
 def spell_guess(self, value):
     """
      If the value is an int, it is the maximum number of spell corrections
      per word. If it is True, an int value of 7 is assumed. A value of
      0 or False disables the spelling guesser.
      In case the spelling guesser is not disabled, run-on corrections will
      be issued too, not limited in their number.
     """
     if not isinstance(value, bool) and (not isinstance(value, int) or value < 0):
         raise TypeError("spell_guess must be set to bool or a non-negative integer")
     if isinstance(value, bool):
         value = 7 if value else 0
     clg.parse_options_set_spell_guess(self._obj, value)
예제 #4
0
 def spell_guess(self, value):
     """
      If the value is an int, it is the maximum number of spell corrections
      per word. If it is True, an int value of 7 is assumed. A value of
      0 or False disables the spelling guesser.
      In case the spelling guesser is not disabled, run-on corrections will
      be issued too, not limited in their number.
     """
     if not isinstance(value, bool) and (not isinstance(value, int) or value < 0):
         raise TypeError("spell_guess must be set to bool or a non-negative integer")
     if isinstance(value, bool):
         value = 7 if value else 0
     clg.parse_options_set_spell_guess(self._obj, value)
예제 #5
0
def parse_options_set_spell_guess(*args) -> "void" :
  return _clinkgrammar.parse_options_set_spell_guess(*args)
예제 #6
0
 def fset(self, value):
     if not isinstance(value, bool):
         raise TypeError("spell_guess must be set to a bool")
     clg.parse_options_set_spell_guess(self._po, 1 if value else 0)
예제 #7
0
 def fset(self, value):
     if not isinstance(value, bool):
         raise TypeError("spell_guess must be set to a bool")
     clg.parse_options_set_spell_guess(self._po, 1 if value else 0)
예제 #8
0
def parse_options_set_spell_guess(opts, val):
    return _clinkgrammar.parse_options_set_spell_guess(opts, val)
예제 #9
0
def parse_options_set_spell_guess(opts: 'Parse_Options',
                                  spell_guess: 'int') -> "void":
    return _clinkgrammar.parse_options_set_spell_guess(opts, spell_guess)
예제 #10
0
def parse_options_set_spell_guess(*args):
    return _clinkgrammar.parse_options_set_spell_guess(*args)