percyliang / sempre

Semantic Parser with Execution
Other
828 stars 301 forks source link

Derivation Tree #221

Open GindaChen opened 3 years ago

GindaChen commented 3 years ago

I would like to know how my natural language entity matches the resulting derivation. For example, using the emnlp2013.grammar for a freebase question

how many countries are in south america

produces

(count (fb:location.location.containedby fb:en.south_america))

I would like to visualize the derivation tree and see how the final formula is generated from the NL sentence step by step.

Is there an easy way to do that in the current version?