Beispiel #1
0
def test_remove_stop_words():
    """test to remove stop words with a new
    sentence"""

    sentence = "salut grandpy a quel endroit se trouve le musee du louvre"
    p = Parser(sentence)
    assert p.remove_stop_words(sentence) == "musee louvre"
Beispiel #2
0
def test_remove_stop_words():
    """test to remove stop words"""

    sentence = "salut grandpy je souhaite savoir ou se situe la tour montparnasse"
    p = Parser(sentence)
    assert p.remove_stop_words(sentence) == "tour montparnasse"