コード例 #1
0
ファイル: linkgrammar.py プロジェクト: virneo/link-grammar
 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
ファイル: clinkgrammar.py プロジェクト: ggosline/taxonparser
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
ファイル: linkgrammar.py プロジェクト: lagleki/jorne
 def fget(self):
     return clg.parse_options_get_short_length(self._po)
コード例 #7
0
ファイル: clinkgrammar.py プロジェクト: raschild6/relex
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
ファイル: tests.py プロジェクト: ggosline/taxonparser
 def test_setting_short_length(self):
     po = ParseOptions()
     po.short_length = 3
     self.assertEqual(clg.parse_options_get_short_length(po._po), 3)