i want to use annotated_text() - (see https://github.com/tvst/st-annotated-text ) .
Can someone explain what I am doing wrong or if it’s simple not possible yet.
I want to iterate over a document and append the annotation for each sentence.
If i do the following:
> def createTuple(text, annoText, color): > return (text, annoText, color) > > def main(): > tuple = createTuple("ich bin ein bunt makierter Text","", Color.GREEN.value) > annotated_text("Hallo " , tuple , " .")
Can someone tell me what I am doing wrong or what I do have to adjust to make it work?
Also it would be nice if one could just pass a list or a single string to annotated_text()
containing both, simple strings and triples for annotated text.
Thank you in andvance.