com.johnsnowlabs.nlp.annotators.parser.dep
Universal Dependencies source files
Dependency treebank source files
Gets a iterable TreeBank
input annotations columns currently used
Number of iterations in training, converges to better accuracy
Gets annotation column name going to generate
Gets annotation column name going to generate
Gets a list of ConnlU training sentences
Input annotation type : DOCUMENT, POS, TOKEN
Input annotation type : DOCUMENT, POS, 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
Number of iterations in training, converges to better accuracy
Output annotation type : DEPENDENCY
Output annotation type : DEPENDENCY
Path to a file in CoNLL-U format
Dependency treebank folder with files in http://www.nltk.org/nltk_data/ Penn Treebank format
Overrides required annotators column if different than default
Overrides required annotators column if different than default
Number of iterations in training, converges to better accuracy
Overrides annotation column name when transforming
Overrides annotation column name when transforming
requirement for pipeline transformation validation.
requirement for pipeline transformation validation. It is called on fit()
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
Unlabeled parser that finds a grammatical relation between two words in a sentence. Its input is a directory with dependency treebank files.
See https://github.com/JohnSnowLabs/spark-nlp/tree/master/src/test/scala/com/johnsnowlabs/nlp/annotators/parser/dep for further reference on how to use this API.