View source: R/Basic_CleanUp.R
textPrep | R Documentation |
This function prepares the data by cleaning punctuation, checking spelling against the lexicons, mapping terms according to the lexicons and lower casing everything. It contains several of the other functions in the package for ease of use.
textPrep(inputText, delim)
inputText |
The relevant pathology text columns |
delim |
the delimitors so the extractor can be used |
This returns a string vector.
Other NLP - Text Cleaning and Extraction:
ColumnCleanUp()
,
DictionaryInPlaceReplace()
,
Extractor()
,
NegativeRemoveWrapper()
,
NegativeRemove()
mywords<-c("Hospital Number","Patient Name:","DOB:","General Practitioner:", "Date received:","Clinical Details:","Macroscopic description:", "Histology:","Diagnosis:") CleanResults<-textPrep(PathDataFrameFinal$PathReportWhole,mywords)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.