I followed the blog’s “sentiment annotation” examples and annotated a few reviews. In the UI, I can see the “Annotation Results” column, but the exported file doesn’t contain this column, so I can’t get the annotation results. My installation is below:
pip install label-studio
The current version is below:
Label Studio version: 1.12.1
The annotation results column is calculated on the fly when you call api/tasks in the data manager and it’s used only for displaying short pieces of text (up to 200 chars).
You can find the full result in task['annotations'][0]['result'].
Hi, @makseq According to this instruction, " 1. The export will always include the annotated tasks, regardless of filters set on the tab." So I suppose the export should contain annotations. Does this look like a bug?
I also tried this command “label-studio export --export-path=”, but the output also doesn’t contain my annotations.
Do you have a link pointer that can help with this approach:
task['annotations'][0]['result']
I also saw this example code below:
from label_studio_converter import Converter
c = Converter('examples/sentiment_analysis/config.xml')
c.convert_to_csv('examples/sentiment_analysis/completions/', 'output_dir', sep='\t', header=True)
@makseq he is trying to export to CSV and include the annotation result in the exported CSV. It doesn’t happen automatically, so I was trying to give instructions to use the converter tool (although the repo is archived).
your results are in sentiment column. When you export in CSV and when you use choices in the labeling interface, they are automatically converted to this.
I wrapped the text display. It isn’t in the sentiment column. Sentiment is from the original data file. They are empty, and the exported file, they are still empty. But these records were already annotated, which can be seen in the Annotation Results column in the UI, but missing from the export.
<View>
<Text name="text" value="$review"/>
<View style="box-shadow: 2px 2px 5px #999; padding: 20px; margin-top: 2em; border-radius: 5px;">
<Header value="Choose text sentiment"/>
<Choices name="sentiment" toName="text" choice="single" showInLine="true">
<Choice value="Positive"/>
<Choice value="Negative"/>
</Choices>
</View>
</View><!-- {
"data": {"text": "This is a great 3D movie that delivers everything almost right in your face."}
} -->