cfffdba7b18d2f55df21c0d9b21a1ee0a7665cc8,spacy/tests/matcher/test_phrase_matcher.py,,test_phrase_matcher_repeated_add,#Any#,56

Before Change


    matcher.add("TEST", None, Doc(en_vocab, words=["like"]))
    matcher.add("TEST", None, Doc(en_vocab, words=["like"]))
    matcher.add("TEST", None, Doc(en_vocab, words=["like"]))
    matcher.add("TEST", None, Doc(en_vocab, words=["like"]))
    doc = Doc(en_vocab, words=["I", "like", "Google", "Now", "best"])
    assert "TEST" in matcher
    assert "TEST2" not in matcher

After Change


    matcher.add("TEST", [Doc(en_vocab, words=["like"])])
    matcher.add("TEST", [Doc(en_vocab, words=["like"])])
    matcher.add("TEST", [Doc(en_vocab, words=["like"])])
    matcher.add("TEST", [Doc(en_vocab, words=["like"])])
    doc = Doc(en_vocab, words=["I", "like", "Google", "Now", "best"])
    assert "TEST" in matcher
    assert "TEST2" not in matcher
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: explosion/spaCy
Commit Name: cfffdba7b18d2f55df21c0d9b21a1ee0a7665cc8
Time: 2019-10-25
Author: ines@ines.io
File Name: spacy/tests/matcher/test_phrase_matcher.py
Class Name:
Method Name: test_phrase_matcher_repeated_add


Project Name: explosion/spaCy
Commit Name: cfffdba7b18d2f55df21c0d9b21a1ee0a7665cc8
Time: 2019-10-25
Author: ines@ines.io
File Name: spacy/tests/matcher/test_phrase_matcher.py
Class Name:
Method Name: test_phrase_matcher_remove


Project Name: explosion/spaCy
Commit Name: cfffdba7b18d2f55df21c0d9b21a1ee0a7665cc8
Time: 2019-10-25
Author: ines@ines.io
File Name: spacy/tests/matcher/test_phrase_matcher.py
Class Name:
Method Name: test_phrase_matcher_contains


Project Name: explosion/spaCy
Commit Name: cfffdba7b18d2f55df21c0d9b21a1ee0a7665cc8
Time: 2019-10-25
Author: ines@ines.io
File Name: spacy/tests/matcher/test_phrase_matcher.py
Class Name:
Method Name: test_phrase_matcher_length


Project Name: explosion/spaCy
Commit Name: cfffdba7b18d2f55df21c0d9b21a1ee0a7665cc8
Time: 2019-10-25
Author: ines@ines.io
File Name: spacy/tests/matcher/test_phrase_matcher.py
Class Name:
Method Name: test_phrase_matcher_overlapping_with_remove


Project Name: explosion/spaCy
Commit Name: cfffdba7b18d2f55df21c0d9b21a1ee0a7665cc8
Time: 2019-10-25
Author: ines@ines.io
File Name: spacy/tests/regression/test_issue3972.py
Class Name:
Method Name: test_issue3972