diff --git a/backend/api/tasks.py b/backend/api/tasks.py index 9c1eb486..f97f9525 100644 --- a/backend/api/tasks.py +++ b/backend/api/tasks.py @@ -71,7 +71,7 @@ class DataFactory: mapping = {label.text: label.id for label in project.labels.all()} annotation = [example.annotation(mapping) for example in examples] for a, id in zip(annotation, ids): - append_field(a, document=id) + append_field(a, example=id) annotation = list(itertools.chain(*annotation)) for a in annotation: if 'label' in a: