on_match remove entities doesn't work properly #10469
-
I have an
This returns:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
It looks like the issue is just that none of your phrases match "He is out of work", so I'm not sure what is unexpected here? I find your code pretty confusing due to the indirection involved. If you're just filtering a list of matches it might be easier to just filter it in the for loop rather than mutating the list. Something like:
|
Beta Was this translation helpful? Give feedback.
It looks like the issue is just that none of your phrases match "He is out of work", so I'm not sure what is unexpected here?
I find your code pretty confusing due to the indirection involved. If you're just filtering a list of matches it might be easier to just filter it in the for loop rather than mutating the list. Something like: