-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Cannot access nested named elements #552
Comments
This is intended behavior. There is some help if you run with warnings enabled (
The warning source line is not so great, because this actually occurs in the compatibility wrapper for
The solution is to Group the contents of
Which will now give you the results you are looking for. Some other notes:
A handy short-cut for calling
This way you don't have to worry about PEP8 method name or not. There is also a new |
I was just looking through the docs, and I could have sworn I wrote these notes up. Maybe in the wiki... nope. The CHANGES file? Kinda, sorta. There is discussion of the new warning that flags ungrouped expressions (like Let's leave this issue open as a reminder to me to update the docs. |
Although a little late, thanks for the detailed answer! :) |
When I define a named element inside another named element (e.g.
pronoun
insidesentence
in the example below), I suppose I would be able to access the named elements recursively as shown in the example (parsed.sentence.verb
).Documentation does not describe this kind of situation, thus I am not sure whether this is a bug or a feature?
Thanks in advance for the answer!
Example below
The text was updated successfully, but these errors were encountered: