Skip to content

Commit 9ee6521

Browse files
committed
Fix nltk resource not found error in test.
1 parent 9f4214e commit 9ee6521

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unitary/with_extras/ads_string/test_ads_string.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ def test_basic_string_methods(self):
6262
assert s3 == s and isinstance(s3, ADSString)
6363

6464
def test_nlp_methods(self):
65+
import nltk
66+
67+
nltk.download("punkt_tab")
68+
6569
ADSString.nlp_backend("nltk")
6670
s = ADSString("Walking my dog on a breezy day is the best way to recharge.")
6771
assert list(s.adjective) == ["breezy", "best"]

0 commit comments

Comments
 (0)