Why doesn't my export contain "annotation results" column?

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

{
“release”: “1.12.1”,
“label-studio-os-package”: {
“version”: “1.12.1”,
“short_version”: “1.12”,
“latest_version_from_pypi”: “1.12.1”,
“latest_version_upload_time”: “2024-05-21T16:23:55”,
“current_version_is_outdated”: false
},
“label-studio-os-backend”: {
“message”: “fix: OPTIC-720: Fix e.viewsStore.forEach error (#5849)”,
“commit”: “779ee98dd7d67c343a3a5f7f62f7f7581a17051e”,
“date”: “2024/05/08 12:50:08”,
“branch”: “”,
“version”: “1.12.1+0.g779ee98.dirty”
},
“label-studio-frontend”: {
“message”: “fix: OPTIC-720: Fix e.viewsStore.forEach error (#5849)”,
“commit”: “779ee98dd7d67c343a3a5f7f62f7f7581a17051e”,
“date”: “2024-05-08T14:38:04.000Z”,
“branch”: “develop”
},
“dm2”: {
“message”: “fix: OPTIC-720: Fix e.viewsStore.forEach error (#5849)”,
“commit”: “779ee98dd7d67c343a3a5f7f62f7f7581a17051e”,
“date”: “2024-05-08T14:38:04.000Z”,
“branch”: “develop”
},
“label-studio-converter”: {
“version”: “0.0.58”
}
}

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)

How to find ‘config.xml’ in my project?

@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).

In CSV this column name will be label.

Do you have a link pointer that can help with this approach:
task['annotations'][0]['result']

Please, open your exported file in any text editor and you will see how it looks.

But this is my exported csv file, after I clicked ‘Export’ button in my UI http://localhost:8080/projects/4/data?tab=4

So it doesn’t have ‘label’ column?

Did you export using LS UI? or using terminal

LS UI, in the link: http://localhost:8080/projects/4/data?tab=4

From the first screenshot I pasted initially. Please scroll up to see the UI

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.

what is your labeling config?

See here.

Click the “Code” button and insert it as text here

<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."}
} -->

what is this LS version?

To re-paste here:
The current version is below:
Label Studio version: 1.12.1

{
“release”: “1.12.1”,
“label-studio-os-package”: {
“version”: “1.12.1”,
“short_version”: “1.12”,
“latest_version_from_pypi”: “1.12.1”,
“latest_version_upload_time”: “2024-05-21T16:23:55”,
“current_version_is_outdated”: false
},
“label-studio-os-backend”: {
“message”: “fix: OPTIC-720: Fix e.viewsStore.forEach error (#5849)”,
“commit”: “779ee98dd7d67c343a3a5f7f62f7f7581a17051e”,
“date”: “2024/05/08 12:50:08”,
“branch”: “”,
“version”: “1.12.1+0.g779ee98.dirty”
},
“label-studio-frontend”: {
“message”: “fix: OPTIC-720: Fix e.viewsStore.forEach error (#5849)”,
“commit”: “779ee98dd7d67c343a3a5f7f62f7f7581a17051e”,
“date”: “2024-05-08T14:38:04.000Z”,
“branch”: “develop”
},
“dm2”: {
“message”: “fix: OPTIC-720: Fix e.viewsStore.forEach error (#5849)”,
“commit”: “779ee98dd7d67c343a3a5f7f62f7f7581a17051e”,
“date”: “2024-05-08T14:38:04.000Z”,
“branch”: “develop”
},
“label-studio-converter”: {
“version”: “0.0.58”
}

Pretty weird… I can’t reproduce it on my side.
Try exporting to JSON format and share it here.

Hi, @makseq The json looks fine. It contains the annotation result. Please confirm it’s correct format.

I am on my Mac Pro Sonoma 14.5. It seems it has an issue in exporting to csv file.

Yes, json looks correct. Try to reproduce my steps from this video:

what will you have in csv export?

I have the same setting as you, but can’t add URL this way. Is this supposed to be a URL or file path? Why is it just a dict?