Whether the TextMatcher should take the CHUNK from TOKEN or not
whether to match regardless of case.
whether to match regardless of case. Defaults true
Extracts entities from target dataset given in a text file
Extracts entities from target dataset given in a text file
entities external resource.
Value for the entity metadata field
Getter for buildFromTokens param
whether to match regardless of case.
whether to match regardless of case. Defaults true
Getter for Value for the entity metadata field
input annotations columns currently used
whether to merge overlapping matched chunks.
whether to merge overlapping matched chunks. Defaults false
Gets annotation column name going to generate
Gets annotation column name going to generate
Output annotator type : DOCUMENT, TOKEN
Output annotator type : DOCUMENT, TOKEN
columns that contain annotations necessary to run this annotator AnnotatorType is used both as input and output columns if not specified
columns that contain annotations necessary to run this annotator AnnotatorType is used both as input and output columns if not specified
whether to merge overlapping matched chunks.
whether to merge overlapping matched chunks. Defaults false
Output annotator type : CHUNK
Output annotator type : CHUNK
Setter for buildFromTokens param
whether to match regardless of case.
whether to match regardless of case. Defaults true
a path to a file that contains the entities in the specified format.
the format of the file, can be one of {ReadAs.LINE_BY_LINE, ReadAs.SPARK_DATASET}. Defaults to LINE_BY_LINE.
a map of additional parameters. Defaults to {“format”: “text”}.
this
Provides a file with phrases to match.
Provides a file with phrases to match. Default: Looks up path in configuration.
Setter for Value for the entity metadata field
Overrides required annotators column if different than default
Overrides required annotators column if different than default
whether to merge overlapping matched chunks.
whether to merge overlapping matched chunks. Defaults false
Overrides annotation column name when transforming
Overrides annotation column name when transforming
Tokenizer
requirement for pipeline transformation validation.
requirement for pipeline transformation validation. It is called on fit()
internal uid required to generate writable annotators
internal uid required to generate writable annotators
takes a Dataset and checks to see if all the required annotation types are present.
takes a Dataset and checks to see if all the required annotation types are present.
to be validated
True if all the required types are present, else false
Required input and expected output annotator types
Annotator to match entire phrases (by token) provided in a file against a Document
See https://github.com/JohnSnowLabs/spark-nlp/blob/master/src/test/scala/com/johnsnowlabs/nlp/annotators/TextMatcherTestSpec.scala for reference on how to use this API