Dependency Matcher execution time #10481
Replies: 1 comment 5 replies
-
There is no way to set a timeout on the Matcher. Usually the DependencyMatcher shouldn't be very slow. There are some exceptions that we've seen before - in the worst case, it is possible to get into an infinite loop if your dependencies have cycles. But spaCy's parser won't create Docs like that, so it should only happen if you're reading in dependencies from other sources. Can you share more information about your data? Are you processing individual sentences or multi-page documents or ...? Are your sentences very long, like in a legal document or something? More info about your data (or, even better, a specific example) would help us figure out if this is a design limitation or a bug of some kind. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am heavily using spacy Dependency Matcher (https://spacy.io/api/dependencymatcher) to extract information from long texts. Some executions take very long time, sometimes the execution does not even come to an end.
Is there a way to set a maximum execution time?
How can one interrupt the matcher?
Beta Was this translation helpful? Give feedback.
All reactions