allennlp.semparse.util

allennlp.semparse.util.lisp_to_nested_expression(lisp_string: str) → List[source]

Takes a logical form as a lisp string and returns a nested list representation of the lisp. For example, “(count (division first))” would get mapped to [‘count’, [‘division’, ‘first’]].