Description Usage Arguments Value Examples
View source: R/RuleBasedNLP_JavaSentence.R
Interface to rules-based NLP (Java pipeline) to obtain sentence level predictions.
1 2 3 4 5 6 | RuleBasedNLP_JavaSentence(segmented.reports, imageid = "imageid",
bodyText = "body", impressionText = "impression",
findings_longstring = paste(c("spondylolisthesis", "annular_fissure",
"disc_bulge", "disc_degeneration", "disc_desiccation",
"disc_height_loss", "disc_protrusion", "facet_degeneration"), collapse =
";"))
|
segmented.reports |
The input data frame |
imageid |
String of column that uniquely identifies each image |
bodyText |
String of column that indexes body of report text |
impressionText |
String of column that indexes impression section of report text |
findings_longstring |
String of findings separated by ";" |
A "long" data frame with the columns Finding imageid: ID that indexes reports Sentence: Exact string of the sentence Section of sentence: Whether the sentence was in body or impression regex: 1 if there is a keyword in the sentence, otherwise 0 negex: 1 if the keyword is negated, otherwise 0 **NOTE**: regex cannot be 1 if regex = 0 keyword: The keyword that triggered regex = 1
1 | RuleBasedNLP_JavaSentence(df, findings_longstring = "facet_degeneration;disc_degeneration")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.