465e3da40350f30c2ef965b72531fb33666fa388,tests/test_extract.py,,test_words_good_tags,#Any#,72
Before Change
def test_words_good_tags(spacy_doc):
result = [
tok
for tok in extract.words(
spacy_doc,
filter_stops=False,
filter_punct=False,
filter_nums=False,
include_pos={"NOUN"},
)
]
assert all(tok.pos_ == "NOUN" for tok in result)
def test_words_min_freq(spacy_doc):
After Change
def test_words_good_tags(spacy_doc):
result1 = list(extract.words(spacy_doc, include_pos={"NOUN"}))
result2 = list(extract.words(spacy_doc, include_pos="NOUN"))
assert all(tok.pos_ == "NOUN" for tok in result1)
assert all(tok.pos_ == "NOUN" for tok in result2)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: chartbeat-labs/textacy
Commit Name: 465e3da40350f30c2ef965b72531fb33666fa388
Time: 2019-03-20
Author: burtdewilde@gmail.com
File Name: tests/test_extract.py
Class Name:
Method Name: test_words_good_tags
Project Name: chartbeat-labs/textacy
Commit Name: 465e3da40350f30c2ef965b72531fb33666fa388
Time: 2019-03-20
Author: burtdewilde@gmail.com
File Name: tests/test_extract.py
Class Name:
Method Name: test_words
Project Name: chartbeat-labs/textacy
Commit Name: 465e3da40350f30c2ef965b72531fb33666fa388
Time: 2019-03-20
Author: burtdewilde@gmail.com
File Name: tests/test_extract.py
Class Name:
Method Name: test_words_min_freq