mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-06 05:10:21 +03:00
Format tests
This commit is contained in:
parent
02aa627092
commit
0d344169af
|
@ -736,10 +736,7 @@ def test_matcher_min_max_operator(en_vocab):
|
|||
|
||||
|
||||
def test_matcher_non_greedy_operator(en_vocab):
|
||||
|
||||
doc = Doc(
|
||||
en_vocab, words=["a", "a", "a", "B", "B", "a", "B"]
|
||||
)
|
||||
doc = Doc(en_vocab, words=["a", "a", "a", "B", "B", "a", "B"])
|
||||
matcher = Matcher(en_vocab)
|
||||
pattern = [{"ORTH": "a", "OP": "*?"}, {"ORTH": "B", "OP": "+?"}]
|
||||
matcher.add("Non-greedy", [pattern])
|
||||
|
|
Loading…
Reference in New Issue
Block a user