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