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

Function extract_relations

components/expr_parser.py:15–17  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

13
14
15def extract_relations(expr):
16 toks = tokenize_s_expr(expr)
17 return [x for x in toks if ('.' in x) and (not x.startswith('m.')) and (not '^^' in x)]
18
19class ASTNode:
20 UNARY = 'unary'

Callers

nothing calls this directly

Calls 1

tokenize_s_exprFunction · 0.70

Tested by

no test coverage detected