Esempio n. 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)
Esempio n. 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)
Esempio n. 3
0
def parse_options_get_short_length(*args) -> "int" :
  return _clinkgrammar.parse_options_get_short_length(*args)
def parse_options_get_short_length(*args):
  return _clinkgrammar.parse_options_get_short_length(*args)
Esempio n. 5
0
 def fget(self):
     return clg.parse_options_get_short_length(self._po)
Esempio n. 6
0
 def fget(self):
     return clg.parse_options_get_short_length(self._po)
Esempio n. 7
0
def parse_options_get_short_length(opts: 'Parse_Options') -> "int":
    return _clinkgrammar.parse_options_get_short_length(opts)
Esempio n. 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)
Esempio n. 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)