Skip to content

Commit

Permalink
Updated find_verb_ancestor function in utils with AUX as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsVroegh committed Oct 15, 2024
1 parent 0126d48 commit 0ce1050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orangecontrib/storynavigation/modules/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def find_verb_ancestor(token):
"""
if isinstance(token, spacy.tokens.token.Token):
# Check if the token is a verb
if token.pos_ == "VERB":
if token.pos_ in ["VERB","AUX"]:
return token

# Traverse the token's ancestors recursively
Expand Down

0 comments on commit 0ce1050

Please sign in to comment.