Skip to content

Commit

Permalink
Add * to the list of functional tags, such as in #1356 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Mar 6, 2024
1 parent c4e2d88 commit 57bfa8b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion stanza/models/constituency/parse_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@

EMPTY_CHILDREN = ()

CONSTITUENT_SPLIT = re.compile("[-=#]")
# used to split off the functional tags from various treebanks
# for example, the Icelandic treebank (which we don't currently
# incorporate) uses * to distinguish 'ADJP', 'ADJP*OC' but we treat
# those as the same
CONSTITUENT_SPLIT = re.compile("[-=#*]")

# These words occur in the VLSP dataset.
# The documentation claims there might be *O*, although those don't
Expand Down

0 comments on commit 57bfa8b

Please sign in to comment.