MCPcopy Create free account
hub / github.com/LHRLAB/ChatKBQA / skeleton_form

Method skeleton_form

components/expr_parser.py:75–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

73 return lf.replace('( ', '(').replace(' )', ')')
74
75 def skeleton_form(self):
76 if self.depth == 0:
77 return self.construction
78 else:
79 fields_str = [x.skeleton_form() for x in self.fields]
80 return ' '.join(['(', self.construction] + fields_str + [')'])
81
82 def logical_form_with_type(self):
83 if self.depth == 0:

Callers 1

test_text_converterFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_text_converterFunction · 0.64