Skip to contents

This maps terms in the text and replaces them with the standardised term (mapped in the lexicon file) within the text. It is used within the textPrep function.

Usage

DictionaryInPlaceReplace(inputString, list)

Arguments

inputString

the input string (ie the full medical report)

list

The replacing list

Value

This returns a character vector

See also

Other NLP - Text Cleaning and Extraction: ColumnCleanUp(), Extractor(), NegativeRemoveWrapper(), NegativeRemove(), textPrep()

Examples

inputText<-DictionaryInPlaceReplace(TheOGDReportFinal$OGDReportWhole,LocationList())