Skip to content

Commit

Permalink
Updated nltk dependancies in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
advaithsrao committed Nov 16, 2023
1 parent aa9e591 commit a1362cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ jobs:
poetry install
working-directory: ${{ github.workspace }}

- name: NLTK dependancies
run: |
poetry run python3 -m nltk.downloader stopwords
- name: Run tests
run: |
poetry run pytest -n 4 -v tests/
Expand Down
3 changes: 0 additions & 3 deletions tests/test_modeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ 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 a1362cf

Please sign in to comment.