sparknlp.annotator.matcher.rule_based_matcher#
Contains classes for the RuleBasedMatcher.
Module Contents#
Classes#
Rule-based token matcher over multiple Spark NLP annotation columns. |
|
Instantiated model of |
- class RuleBasedMatcher[source]#
Rule-based token matcher over multiple Spark NLP annotation columns.
Rules are supplied as JSON or JSONL. Each token pattern can combine attributes from token text, POS, lemmas, NER, dependency metadata, or custom mapped annotation columns. Matches are emitted as
CHUNKannotations.Input Annotation types
Output Annotation type
DOCUMENT, TOKEN, ...CHUNK
- class RuleBasedMatcherModel(classname='com.johnsnowlabs.nlp.annotators.matcher.RuleBasedMatcherModel', java_model=None)[source]#
Instantiated model of
RuleBasedMatcher.