You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one wants to get the lexical entry or type of the leaves of a derivation tree, they must traverse the tree until a daughters list with a single UdfTerminal is found (since the preterminal is where lexical type and entry info is stored). Since this might be a likely usage of derivation trees, a more convenient function could be created to do this. E.g. d.leaf_info() or something, which returns a list of (lexical_entry, lexical_type, orth). Alternatively, d.terminals() and d.preterminals(), which could be more generic.
The text was updated successfully, but these errors were encountered:
If one wants to get the lexical entry or type of the leaves of a derivation tree, they must traverse the tree until a daughters list with a single UdfTerminal is found (since the preterminal is where lexical type and entry info is stored). Since this might be a likely usage of derivation trees, a more convenient function could be created to do this. E.g.
d.leaf_info()
or something, which returns a list of (lexical_entry, lexical_type, orth). Alternatively,d.terminals()
andd.preterminals()
, which could be more generic.The text was updated successfully, but these errors were encountered: