6bbf4ea309263913229686b42017cde83440e105,spacy/tests/doc/test_array.py,,test_doc_array_attr_of_token,#,9
Before Change
def test_doc_array_attr_of_token(en_tokenizer, en_vocab):
text = "An example sentence"
tokens = en_tokenizer(text)
example = tokens.vocab["example"]
assert example.orth != example.shape
feats_array = tokens.to_array((ORTH, SHAPE))
assert feats_array[0][0] != feats_array[0][1]
After Change
def test_doc_array_attr_of_token(en_vocab):
doc = Doc(en_vocab, words=["An", "example", "sentence"])
example = doc.vocab["example"]
assert example.orth != example.shape
feats_array = doc.to_array((ORTH, SHAPE))
assert feats_array[0][0] != feats_array[0][1]
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 7
Instances
Project Name: explosion/spaCy
Commit Name: 6bbf4ea309263913229686b42017cde83440e105
Time: 2019-03-10
Author: ines@ines.io
File Name: spacy/tests/doc/test_array.py
Class Name:
Method Name: test_doc_array_attr_of_token
Project Name: explosion/spaCy
Commit Name: d8051e89ca9daeb047d40a113fa45ccecfd0f493
Time: 2019-02-15
Author: ines@ines.io
File Name: spacy/tests/doc/test_doc_spilt.py
Class Name:
Method Name: test_split_dependencies
Project Name: explosion/spaCy
Commit Name: 6bbf4ea309263913229686b42017cde83440e105
Time: 2019-03-10
Author: ines@ines.io
File Name: spacy/tests/doc/test_array.py
Class Name:
Method Name: test_doc_stringy_array_attr_of_token
Project Name: explosion/spaCy
Commit Name: d8051e89ca9daeb047d40a113fa45ccecfd0f493
Time: 2019-02-15
Author: ines@ines.io
File Name: spacy/tests/doc/test_doc_spilt.py
Class Name:
Method Name: test_split_heads_error
Project Name: explosion/spaCy
Commit Name: 6bbf4ea309263913229686b42017cde83440e105
Time: 2019-03-10
Author: ines@ines.io
File Name: spacy/tests/doc/test_array.py
Class Name:
Method Name: test_doc_scalar_attr_of_token