mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-11 08:42:28 +03:00
Make regression test less sensitive to tag-map stuff
This commit is contained in:
parent
4e2f07a655
commit
22250cf6b7
|
@ -30,20 +30,20 @@ def test_issue3002():
|
||||||
def test_issue3009(en_vocab):
|
def test_issue3009(en_vocab):
|
||||||
"""Test problem with matcher quantifiers"""
|
"""Test problem with matcher quantifiers"""
|
||||||
patterns = [
|
patterns = [
|
||||||
[{"LEMMA": "have"}, {"LOWER": "to"}, {"LOWER": "do"}, {"POS": "ADP"}],
|
[{"LEMMA": "have"}, {"LOWER": "to"}, {"LOWER": "do"}, {"TAG": "IN"}],
|
||||||
[
|
[
|
||||||
{"LEMMA": "have"},
|
{"LEMMA": "have"},
|
||||||
{"IS_ASCII": True, "IS_PUNCT": False, "OP": "*"},
|
{"IS_ASCII": True, "IS_PUNCT": False, "OP": "*"},
|
||||||
{"LOWER": "to"},
|
{"LOWER": "to"},
|
||||||
{"LOWER": "do"},
|
{"LOWER": "do"},
|
||||||
{"POS": "ADP"},
|
{"TAG": "IN"},
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
{"LEMMA": "have"},
|
{"LEMMA": "have"},
|
||||||
{"IS_ASCII": True, "IS_PUNCT": False, "OP": "?"},
|
{"IS_ASCII": True, "IS_PUNCT": False, "OP": "?"},
|
||||||
{"LOWER": "to"},
|
{"LOWER": "to"},
|
||||||
{"LOWER": "do"},
|
{"LOWER": "do"},
|
||||||
{"POS": "ADP"},
|
{"TAG": "IN"},
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
words = ["also", "has", "to", "do", "with"]
|
words = ["also", "has", "to", "do", "with"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user