You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using a simple LambdaFunctionMatcher, I would expect the matcher to return all mentions for which the corresponding function returns True.
However, LambdaFunctionMatcher as a subclass of _NgramMatcher/_Matcher, it has the longest_match_only=True attribute.
This can lead to cases where a sub-span, for witch the lambda function returns True, will not be added as a mention, if its parent span was already matched as True by the matcher.
Expected behavior
Add all spans to the returned mentions, if the lambda function returns True. This could be accomplished by setting longest_match_only to False by default.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using a simple
LambdaFunctionMatcher
, I would expect the matcher to return all mentions for which the corresponding function returnsTrue
.However,
LambdaFunctionMatcher
as a subclass of_NgramMatcher
/_Matcher
, it has thelongest_match_only=True
attribute.This can lead to cases where a sub-span, for witch the lambda function returns
True
, will not be added as a mention, if its parent span was already matched asTrue
by the matcher.Expected behavior
Add all spans to the returned mentions, if the lambda function returns
True
. This could be accomplished by settinglongest_match_only
toFalse
by default.The text was updated successfully, but these errors were encountered: