Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ESA+MQM examples indexing, #173 #175

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Examples/MQM+ESA/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ DJANGO_SUPERUSER_USERNAME=test DJANGO_SUPERUSER_PASSWORD=test python3 manage.py
python3 manage.py collectstatic --no-post-process;

python3 manage.py StartNewCampaign Examples/MQM+ESA/manifest_esa.json \
--batches-json Examples/MQM+ESA/batches_wmt23_en-de_esa.json \
--batches-json Examples/MQM+ESA/batches_esa.json \
--csv-output Examples/MQM+ESA/output_esa.csv;

python3 manage.py StartNewCampaign Examples/MQM+ESA/manifest_mqm.json \
--batches-json Examples/MQM+ESA/batches_wmt23_en-de_mqm.json \
--batches-json Examples/MQM+ESA/batches_mqm.json \
--csv-output Examples/MQM+ESA/output_mqm.csv;

python3 manage.py StartNewCampaign Examples/MQM+ESA/manifest_esa_gemba.json \
--batches-json Examples/MQM+ESA/batches_wmt23_en-de_esa_gemba.json \
--batches-json Examples/MQM+ESA/batches_esa_gemba.json \
--csv-output Examples/MQM+ESA/output_esa_gemba.csv;

python3 manage.py runserver;

# See Examples/MQM+ESA/outputs.csv for a SSO login for the annotator account
# Collect some annotations, then export annotation scores...

python3 manage.py ExportSystemScoresToCSV example16mqm
python3 manage.py ExportSystemScoresToCSV example15esa
```

## Audio/Video
Expand Down
2,544 changes: 2,544 additions & 0 deletions Examples/MQM+ESA/batches_esa.json

Large diffs are not rendered by default.

2,554 changes: 2,554 additions & 0 deletions Examples/MQM+ESA/batches_mqm.json

Large diffs are not rendered by default.

1,267 changes: 0 additions & 1,267 deletions Examples/MQM+ESA/batches_wmt23_en-de_esa.json

This file was deleted.

1,272 changes: 0 additions & 1,272 deletions Examples/MQM+ESA/batches_wmt23_en-de_mqm.json

This file was deleted.

4 changes: 2 additions & 2 deletions Examples/MQM+ESA/manifest_esa.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"REDUNDANCY": 2,

"TASKS_TO_ANNOTATORS": [
["eng", "deu", "uniform", 2, 1]
["eng", "deu", "uniform", 4, 2]
],

"TASK_TYPE": "Document",
"TASK_OPTIONS": "ESA;StaticContext"
"TASK_OPTIONS": "ESA"
}
4 changes: 2 additions & 2 deletions Examples/MQM+ESA/manifest_mqm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"REDUNDANCY": 2,

"TASKS_TO_ANNOTATORS": [
["eng", "deu", "uniform", 2, 1]
["eng", "deu", "uniform", 4, 2]
],

"TASK_TYPE": "Document",
"TASK_OPTIONS": "MQM;StaticContext"
"TASK_OPTIONS": "MQM"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
engdeu0f01,ende-tutorial1,1000000,TGT,eng,deu,10,ende-tutorial1,False,"{'start_i': 0, 'end_i': 50, 'severity': 'major'}"
engdeu0f01,ende-tutorial1,1000001,TGT,eng,deu,20,ende-tutorial1,False,"{'start_i': 0, 'end_i': 50, 'severity': 'major'}"
engdeu0f01,ende-tutorial1,1000002,TGT,eng,deu,30,ende-tutorial1,False,"{'start_i': 0, 'end_i': 50, 'severity': 'major'}"
engdeu0f01,ende-tutorial2,1000003,TGT,eng,deu,40,ende-tutorial2,False,"{'start_i': 0, 'end_i': 50, 'severity': 'major'}"
engdeu0f01,ende-tutorial2,1000004,TGT,eng,deu,50,ende-tutorial2,False,"{'start_i': 0, 'end_i': 50, 'severity': 'major'}"
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Username,Password,URL
engdeu0f01,e70c5a35,http://127.0.0.1:8000/dashboard/sso/engdeu0f01/e70c5a35/
engdeu0f02,6eaa0b80,http://127.0.0.1:8000/dashboard/sso/engdeu0f02/6eaa0b80/
engdeu0f03,4473f5e7,http://127.0.0.1:8000/dashboard/sso/engdeu0f03/4473f5e7/
engdeu0f04,94851f85,http://127.0.0.1:8000/dashboard/sso/engdeu0f04/94851f85/
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# Exit on error
set -eo pipefail

prefix=example_direct_mqmesa
prefix=example_mqmesa

# Create campaign from Examples/MQM+ESA
# Create campaign from Examples/DirectMQM
$APPRAISE_MANAGE StartNewCampaign $APPRAISE_EXAMPLES/MQM+ESA/manifest_esa.json \
--batches-json $APPRAISE_EXAMPLES/MQM+ESA/batches_wmt23_en-de_esa.json \
--batches-json $APPRAISE_EXAMPLES/MQM+ESA/batches_esa.json \
--csv-output $prefix.users.csv

# Check generated credentials
Expand Down
Loading