nltk_tgrep
nltk_tgrep copied to clipboard
Checking for terminals?
Hi @wroberts, just wanted to say this tool is incredibly invaluable! Really a big time saver.
This question is more of a tgrep question, but I thought I might pose it here... I'm trying to develop a tregex for A with no children, or, in other words A as a leaf.
I've tried
"A < {}", "A !< *", and a few others...
Do you know how I can form this tregex or will I need to check the ParsedTree for subtrees of size 0?