Skip to content

Commit

Permalink
Update argumentative.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks authored Aug 30, 2024
1 parent b474715 commit 123aad8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ir_axioms/axiom/argumentative.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def _sentence_length(
document: RankedDocument,
) -> float:
download_nltk_dependencies("punkt")
download_nltk_dependencies("punkt_tab")
sentences = sent_tokenize(context.contents(document))
if len(sentences) == 0:
return nan
Expand Down

0 comments on commit 123aad8

Please sign in to comment.