Get annotation text #204
-
Hi, I have a corpus of annotated documents in *.gate format, I load the document and iterate over the annotations in a specific annotation set but can't get the text, instead I get information about the annotation:
which gives me:
Is it possible to get the actual text (as not all annotation have features and I just need to text)? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
johann-petrak
Jun 12, 2023
Replies: 1 comment 1 reply
-
Yes you can use the annotation as a slice like that: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can use the annotation as a slice like that:
doc[ann]