mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
* Fix Matcher.pipe
This commit is contained in:
parent
1cf0100bf6
commit
7119e77fb6
|
@ -249,9 +249,10 @@ cdef class Matcher:
|
||||||
doc.ents = [(e.label, e.start, e.end) for e in doc.ents] + filtered
|
doc.ents = [(e.label, e.start, e.end) for e in doc.ents] + filtered
|
||||||
return matches
|
return matches
|
||||||
|
|
||||||
def pipe(self, texts, batch_size=1000, n_threads=2):
|
def pipe(self, docs, batch_size=1000, n_threads=2):
|
||||||
for text in texts:
|
for doc in docs:
|
||||||
yield self(text)
|
self(doc)
|
||||||
|
yield doc
|
||||||
|
|
||||||
|
|
||||||
cdef class PhraseMatcher:
|
cdef class PhraseMatcher:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user