-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add stop words * add more stop words
- Loading branch information
1 parent
e48756e
commit 3631235
Showing
3 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import logging | ||
import os | ||
import pandas as pd | ||
from quotaclimat.data_processing.mediatree.utils import * | ||
from quotaclimat.data_processing.mediatree.detect_keywords import * | ||
|
||
def test_get_remove_stopwords_recycler(): | ||
ad = "nous les recycler pour en faire de nouvelles en fabriquant nous-mêmes du plastique recyclé pour cela nous avons créé trois usines exclusivement dédié au recyclage dès cette année cristallines est capable de recycler autant de bouteilles" | ||
|
||
assert remove_stopwords(ad) == " de nouvelles en fabriquant pour cela nous avons créé dès cette année autant de bouteilles" | ||
|
||
def test_get_remove_stopwords_no_modification(): | ||
ad = "no keywords" | ||
|
||
assert remove_stopwords(ad) == ad |
3631235
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report