sparknlp.common.match_strategy#
Allowed strategies for RuleFactory applications regarding replacement
Module Contents#
Classes#
Object that contains constants for how for matched strategies used in RuleFactory. |
- class MatchStrategy[source]#
Object that contains constants for how for matched strategies used in RuleFactory.
Possible values are:
Value
Description
MatchStrategy.MATCH_ALLThis strategy matches all occurrences of all rules in the given text.
MatchStrategy.MATCH_FIRSTThis strategy matches only the first occurrence of each rule in the given text.
MatchStrategy.MATCH_COMPLETEThis strategy matches only the first occurrence of each rule in the given text.