コード例 #1
0
ファイル: linkgrammar.py プロジェクト: virneo/link-grammar
 def disjunct_cost(self):
     """
     Determines the maximum disjunct cost used during parsing, where the
     cost of a disjunct is equal to the maximum cost of all of its connectors.
     The default is that only disjuncts of cost 2.7 or less are considered.
     """
     return clg.parse_options_get_disjunct_cost(self._obj)
コード例 #2
0
 def disjunct_cost(self):
     """
     Determines the maximum disjunct cost used during parsing, where the
     cost of a disjunct is equal to the maximum cost of all of its connectors.
     The default is that only disjuncts of cost 2.7 or less are considered.
     """
     return clg.parse_options_get_disjunct_cost(self._obj)
コード例 #3
0
ファイル: clinkgrammar.py プロジェクト: ggosline/taxonparser
def parse_options_get_disjunct_cost(*args) -> "double" :
  return _clinkgrammar.parse_options_get_disjunct_cost(*args)
コード例 #4
0
def parse_options_get_disjunct_cost(*args):
  return _clinkgrammar.parse_options_get_disjunct_cost(*args)
コード例 #5
0
 def fget(self):
     return clg.parse_options_get_disjunct_cost(self._po)
コード例 #6
0
ファイル: linkgrammar.py プロジェクト: lagleki/jorne
 def fget(self):
     return clg.parse_options_get_disjunct_cost(self._po)
コード例 #7
0
ファイル: clinkgrammar.py プロジェクト: raschild6/relex
def parse_options_get_disjunct_cost(opts: 'Parse_Options') -> "double":
    return _clinkgrammar.parse_options_get_disjunct_cost(opts)
コード例 #8
0
 def test_setting_disjunct_cost(self):
     po = ParseOptions()
     po.disjunct_cost = 3.0
     self.assertEqual(clg.parse_options_get_disjunct_cost(po._po), 3.0)
コード例 #9
0
ファイル: tests.py プロジェクト: ggosline/taxonparser
 def test_setting_disjunct_cost(self):
     po = ParseOptions()
     po.disjunct_cost = 3.0
     self.assertEqual(clg.parse_options_get_disjunct_cost(po._po), 3.0)