Exemple #1
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)
Exemple #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)
Exemple #3
0
def parse_options_get_disjunct_cost(*args) -> "double" :
  return _clinkgrammar.parse_options_get_disjunct_cost(*args)
def parse_options_get_disjunct_cost(*args):
  return _clinkgrammar.parse_options_get_disjunct_cost(*args)
Exemple #5
0
 def fget(self):
     return clg.parse_options_get_disjunct_cost(self._po)
Exemple #6
0
 def fget(self):
     return clg.parse_options_get_disjunct_cost(self._po)
Exemple #7
0
def parse_options_get_disjunct_cost(opts: 'Parse_Options') -> "double":
    return _clinkgrammar.parse_options_get_disjunct_cost(opts)
Exemple #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)
Exemple #9
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)