Skip to content
Discussion options

You must be logged in to vote

Like the error says, each pattern should be a list of dicts. When you pass patterns to matcher.add, you don't pass one pattern, you pass a list of patterns. In your case you can fix it like this:

matcher.add("matching_1", [pattern], on_match=None) 

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dnchinmayee
Comment options

Answer selected by adrianeboyd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat / matcher Feature: Token, phrase and dependency matcher
3 participants