MachineLearningNLP: Apply machine-learning NLP for the given list of findings

Description Usage Arguments Value Examples

View source: R/MachineLearningNLP.R

Description

This function applies the feature weights stored in the ml_model_coef.xlsx file (one sheet = one model) To a the input feature matrix text.dfm preprocessed using CreateTextFeatures

Usage

1
2
MachineLearningNLP(finding.list, text.dfm, regex.df.wide,
  ml_feature_weights, grouping_var = "imageid")

Arguments

finding.list

The vector of string of findings

text.dfm

DFM object of N-grams

regex.df.wide

Regex, negex features

ml_feature_weights

Data frame of feature names and feature weights

grouping_var

Unique identifier of report

Value

A dataframe containing machine-learing predicted probabilities (between 0 and 1) and predicted classes (0 or 1) for each finding in finding.list

Examples

1
MachineLearningNLP(finding.list, text.dfm, regex.df.wide, grouping_var = "imageid")

wlktan/LireNLPSystem documentation built on May 27, 2019, 12:13 p.m.