View source: R/relation_extraction.R
nlp_relation_extraction_pretrained | R Documentation |
Create a pretrained Spark NLP RelationExtractionModel
model
nlp_relation_extraction_pretrained( sc, input_cols, output_col, relation_pairs, max_syntactic_distance = NULL, feature_scaling = NULL, prediction_threshold = NULL, name = NULL, lang = NULL, remote_loc = NULL )
sc |
A Spark connection |
input_cols |
Input columns. String array. |
output_col |
Output column. String. |
relation_pairs |
List of dash-separated pairs of named entities ("ENTITY1-ENTITY2", e.g. "Biomarker-RelativeDay"), which will be processed |
max_syntactic_distance |
Maximal syntactic distance, as threshold (Default: 0) |
feature_scaling |
Feature scaling method. |
prediction_threshold |
Minimal activation of the target unit to encode a new relation instance (Default: 0.5f) |
name |
the name of the model to load. If NULL will use the default value |
lang |
the language of the model to be loaded. If NULL will use the default value |
remote_loc |
the remote location of the model. If NULL will use the default value |
The Spark NLP model with the pretrained model loaded
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.