Example #1
0
def test_length_null(sentences, _bot_brain):
    bot, pos, lex = _bot_brain
    reduced_sentences = output_filters.filter_length(sentences, pos)
    same_sentences = output_filters.filter_length(reduced_sentences, pos)
    assert len(same_sentences) == len(reduced_sentences)
Example #2
0
def test_length_null(sentences, _bot_brain):
    bot, pos, lex = _bot_brain
    reduced_sentences = output_filters.filter_length(sentences, pos)
    same_sentences = output_filters.filter_length(reduced_sentences, pos)
    assert len(same_sentences) == len(reduced_sentences)
Example #3
0
def test_length(sentences, _bot_brain):
    bot, pos, lex = _bot_brain
    reduced_sentences = output_filters.filter_length(sentences, pos)
    for sentence in reduced_sentences:
        assert len(sentence.split()) <= 8
Example #4
0
def test_length(sentences, _bot_brain):
    bot, pos, lex = _bot_brain
    reduced_sentences = output_filters.filter_length(sentences, pos)
    for sentence in reduced_sentences:
        assert len(sentence.split()) <= 8