d8051e89ca9daeb047d40a113fa45ccecfd0f493,spacy/tests/doc/test_doc_spilt.py,,test_doc_split,#,11

Before Change


    text = "LosAngeles start."
    heads = [1, 1, 0]
    tokens = en_tokenizer(text)
    doc = get_doc(tokens.vocab, [t.text for t in tokens], heads=heads)

    assert len(doc) == 3
    assert len(str(doc)) == 19

After Change




def test_doc_split(en_vocab):
    words = ["LosAngeles", "start", "."]
    heads = [1, 1, 0]
    doc = get_doc(en_vocab, words=words, heads=heads)
    assert len(doc) == 3
    assert len(str(doc)) == 19
    assert doc[0].head.text == "start"
    assert doc[1].head.text == "."
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


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_doc_split


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_tag


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_dep