Cleans the long lines to separate them into new lines if necessary. This helps further down the line in the tokenisation of the text. It is optional depending on the format of your text. It should be used after the Extractor has separated out the different parts of the text according to the user's requirements

NewLines(dataframe, EndoReportColumn)

Arguments

dataframe

dataframe

EndoReportColumn

The endoscopy report text column

Examples

# The function takes the demo data # Myendo and searches through the raw # endoscopy text so that the text is #divided by sentence into a newline aa<-NewLines(Myendo,'OGDReportWhole')