Skip to content

Commit

Permalink
Test fix for nltk stopwords - word embedding
Browse files Browse the repository at this point in the history
  • Loading branch information
advaithsrao committed Nov 16, 2023
1 parent 2494013 commit a4e7a31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_modeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def test_evaluate_and_log(x, y_true, y_pred):
assert os.path.exists('/tmp/test.log')

def test_word2vec_embedding(mail):
import nltk
nltk.download('stopwords')

embedder = Word2VecEmbedder()
embedding = embedder.transform(mail)[0]
assert len(embedding) == 300
Expand Down

0 comments on commit a4e7a31

Please sign in to comment.