dependencyMatcher.pipe #7809
theognis0110
started this conversation in
Help: Best practices
Replies: 1 comment 2 replies
-
You can just call the matcher inside the for loop. The implementation of the old pipe function on the matcher is just a for loop anyway.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Is there a way to process a batch of docs with the new dependencyMatcher as in the "ancient time" with matcher.pipe
i used to do
for i, (doc, matches) in enumerate(matcher.pipe(nlp.pipe(texts, batch_size=lenn),
batch_size=lenn, return_matches=True)):
do_something(doc, matches)
but this is no longer possible
Beta Was this translation helpful? Give feedback.
All reactions