Пример #1
0
 def short_length(self):
     """
      The short_length parameter determines how long the links are allowed
      to be. The intended use of this is to speed up parsing by not
      considering very long links for most connectors, since they are very
      rarely used in a correct parse. An entry for UNLIMITED-CONNECTORS in
      the dictionary will specify which connectors are exempt from the
      length limit.
     """
     return clg.parse_options_get_short_length(self._obj)
Пример #2
0
 def short_length(self):
     """
      The short_length parameter determines how long the links are allowed
      to be. The intended use of this is to speed up parsing by not
      considering very long links for most connectors, since they are very
      rarely used in a correct parse. An entry for UNLIMITED-CONNECTORS in
      the dictionary will specify which connectors are exempt from the
      length limit.
     """
     return clg.parse_options_get_short_length(self._obj)
Пример #3
0
def parse_options_get_short_length(*args) -> "int" :
  return _clinkgrammar.parse_options_get_short_length(*args)
Пример #4
0
def parse_options_get_short_length(*args):
  return _clinkgrammar.parse_options_get_short_length(*args)
Пример #5
0
 def fget(self):
     return clg.parse_options_get_short_length(self._po)
Пример #6
0
 def fget(self):
     return clg.parse_options_get_short_length(self._po)
Пример #7
0
def parse_options_get_short_length(opts: 'Parse_Options') -> "int":
    return _clinkgrammar.parse_options_get_short_length(opts)
Пример #8
0
 def test_setting_short_length(self):
     po = ParseOptions()
     po.short_length = 3
     self.assertEqual(clg.parse_options_get_short_length(po._po), 3)
Пример #9
0
 def test_setting_short_length(self):
     po = ParseOptions()
     po.short_length = 3
     self.assertEqual(clg.parse_options_get_short_length(po._po), 3)