Converts annotated text to plain text format with code markers. Each annotation is represented as a code identifier and annotated text wrapped in square brackets. Multiple annotations are preserved and shown in order of appearance in the text.
create_plain_text_annotations(text, annotations)Character string containing formatted text with code markers
Character string containing the original text
Data frame of annotations with columns:
start: Numeric vector of starting positions
end: Numeric vector of ending positions
code: Character vector of code names