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
Agreed! I kind of think __len__ should stay as it is, but we can easily add something like count_atoms. Do you think it should be a method in GrammaticalExpression or independent?
The len method for GrammaticalExpression returns the total number of nodes, but we typically report 'number of atoms' for complexity.
https://github.com/CLMBRs/ultk/blob/generic-meaning/src/ultk/language/grammar.py#L182
So having some way of getting just the leaf nodes would be good.
The text was updated successfully, but these errors were encountered: