bind_clinspacy {clinspacy} | R Documentation |
This function binds columns containing either the lemma of the entity or the UMLS concept unique identifier (CUI) with frequencies to a data frame. The resulting data frame can be used to train a machine learning model or for additional feature selection.
Description
This function binds columns containing either the lemma of the entity or the UMLS concept unique identifier (CUI) with frequencies to a data frame. The resulting data frame can be used to train a machine learning model or for additional feature selection.
Usage
bind_clinspacy(
clinspacy_output,
df,
cs_col = NULL,
df_id = NULL,
subset = "is_negated == FALSE"
)
Arguments
clinspacy_output |
A data.frame or file name containing the output from
|
df |
The data.frame to which you would like to bind the output of
|
cs_col |
Name of the column in the |
df_id |
The name of the |
subset |
Logical criteria represented as a string by which the
|
Value
A data frame containing the original data frame as well as additional column names for each lemma or UMLS concept unique identifer found with values containing frequencies.
Examples
## Not run:
mtsamples <- dataset_mtsamples()
mtsamples[1:5,] %>%
clinspacy(df_col = 'description') %>%
bind_clinspacy(mtsamples[1:5,])
## End(Not run)