operators.spacy.VerbPhraseFeaturizer
- class operators.spacy.VerbPhraseFeaturizer(field, target_field=None, min_length=2, **spacy_span_kwargs)
A Featurizer that yields all verb phrases according to a simple part-of-speech verb match.
Used by the Seq Tagging application template as one of the base candidate generators for producing embeddings from.
Parameters
Parameters
Name Type Default Info field strThe field to parse into verb phrases. target_field Optional[str]NoneThe field in which to store the extracted verb phrase candidates. min_length int2The minimum number of tokens for extracted verb phrases. Used to avoid single token phrases. Default: 2. spacy_span_kwargs Anykwargs to pass to the spaCy model.