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
In some cases it might become handy to filter out some of the rules, e.g., ignoring prefixes, hence the need to add that option.
It could be in the form of a filter function, such as rules_exclude, or a parameter based on rule["kind"], so rules_kind could be either AFFIXES_PREFIX or AFFIXES_SUFFIX and filter out appropriately.
Right now the only way to achieve this is by loading the rules, doing the filtering, and passing the resulting filtered list to the AffixesMatcher constructor.
In some cases it might become handy to filter out some of the rules, e.g., ignoring prefixes, hence the need to add that option.
It could be in the form of a filter function, such as
rules_exclude
, or a parameter based onrule["kind"]
, sorules_kind
could be eitherAFFIXES_PREFIX
orAFFIXES_SUFFIX
and filter out appropriately.Right now the only way to achieve this is by loading the rules, doing the filtering, and passing the resulting filtered list to the
AffixesMatcher
constructor.Maybe both options would be good to have.
The text was updated successfully, but these errors were encountered: