コード例 #1
0
ファイル: linkgrammar.py プロジェクト: virneo/link-grammar
 def max_parse_time(self):
     """
      Determines the approximate maximum time (in seconds) that parsing is
      allowed to take. After this time has expired, the parsing process is
      artificially forced to complete quickly by pretending that no further
      solutions can be constructed. The actual parsing time might be
      slightly longer.
     """
     return clg.parse_options_get_max_parse_time(self._obj)
コード例 #2
0
 def max_parse_time(self):
     """
      Determines the approximate maximum time (in seconds) that parsing is
      allowed to take. After this time has expired, the parsing process is
      artificially forced to complete quickly by pretending that no further
      solutions can be constructed. The actual parsing time might be
      slightly longer.
     """
     return clg.parse_options_get_max_parse_time(self._obj)
コード例 #3
0
ファイル: clinkgrammar.py プロジェクト: ggosline/taxonparser
def parse_options_get_max_parse_time(*args) -> "int" :
  return _clinkgrammar.parse_options_get_max_parse_time(*args)
コード例 #4
0
def parse_options_get_max_parse_time(*args):
  return _clinkgrammar.parse_options_get_max_parse_time(*args)
コード例 #5
0
 def fget(self):
     return clg.parse_options_get_max_parse_time(self._po)
コード例 #6
0
ファイル: linkgrammar.py プロジェクト: lagleki/jorne
 def fget(self):
     return clg.parse_options_get_max_parse_time(self._po)
コード例 #7
0
ファイル: clinkgrammar.py プロジェクト: raschild6/relex
def parse_options_get_max_parse_time(opts: 'Parse_Options') -> "int":
    return _clinkgrammar.parse_options_get_max_parse_time(opts)
コード例 #8
0
 def test_setting_max_parse_time(self):
     po = ParseOptions()
     po.max_parse_time = 3
     self.assertEqual(clg.parse_options_get_max_parse_time(po._po), 3)
コード例 #9
0
ファイル: tests.py プロジェクト: ggosline/taxonparser
 def test_setting_max_parse_time(self):
     po = ParseOptions()
     po.max_parse_time = 3
     self.assertEqual(clg.parse_options_get_max_parse_time(po._po), 3)