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
While running I get AttributeError: 'str' object has no attribute 'subtrees'
In the example the code just pass a string and then do for s in t.subtrees(lambda t: t.label() == 'NP'): without parsing or anything like that which results in the error described above
The text was updated successfully, but these errors were encountered:
While running I get AttributeError: 'str' object has no attribute 'subtrees'
In the example the code just pass a string and then do
for s in t.subtrees(lambda t: t.label() == 'NP'):
without parsing or anything like that which results in the error described aboveThe text was updated successfully, but these errors were encountered: