How to find out what led to a DependencyMatcher result? #9844
songyang-dev
started this conversation in
Help: Best practices
Replies: 1 comment 2 replies
-
One option here is, you can use a pattern similar to what the EntityRuler does internally for the other matchers, and use a multi-part key. So you can have |
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.
-
Using
DependencyMatcher
, we get an answer withThe documentation says you can read which
pattern : List[Dict]
led to this match.where
i
is the token id fromWhat should I do if I have many patterns added to the matcher? The example above assumes only one
pattern
element inside theadd
method, eg.I'd like to have many
pattern
variables.And I want to know which pattern led to a given match result.
Beta Was this translation helpful? Give feedback.
All reactions