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