Skip to content

Commit

Permalink
assert removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ulf1 committed Aug 8, 2023
1 parent 26d927b commit feac542
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quaxa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.2.0'
__version__ = '0.1.1'

from .quaxa import (
total_score,
Expand Down
3 changes: 2 additions & 1 deletion quaxa/quaxa.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def has_finite_verb_and_subject(annotation: List[dict]) -> bool:
"""
# find the root of the dependency tree
root = [token for token in annotation if token['deprel'].lower() == 'root']
assert len(root) == 1
if len(root) != 1:
return False
root = root[0]
root_id = root['id']

Expand Down

0 comments on commit feac542

Please sign in to comment.