mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-15 10:42:34 +03:00
commit
c669435c62
|
@ -1119,7 +1119,7 @@ entityruler = EntityRuler(nlp)
|
||||||
patterns = [{"label": "TEST", "pattern": str(i)} for i in range(100000)]
|
patterns = [{"label": "TEST", "pattern": str(i)} for i in range(100000)]
|
||||||
|
|
||||||
other_pipes = [p for p in nlp.pipe_names if p != "tagger"]
|
other_pipes = [p for p in nlp.pipe_names if p != "tagger"]
|
||||||
with nlp.disable_pipes(*disable_pipes):
|
with nlp.disable_pipes(*other_pipes):
|
||||||
entityruler.add_patterns(patterns)
|
entityruler.add_patterns(patterns)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user