Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenient access to (pre)terminals on Derivation tres #105

Closed
goodmami opened this issue Apr 25, 2017 · 0 comments
Closed

Convenient access to (pre)terminals on Derivation tres #105

goodmami opened this issue Apr 25, 2017 · 0 comments
Milestone

Comments

@goodmami
Copy link
Member

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.

@goodmami goodmami modified the milestone: v0.7.0 May 17, 2017
@goodmami goodmami modified the milestones: v0.7.0, v0.6.2 May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant