mirror of https://github.com/doccano/doccano.git
5 changed files with 86 additions and 9 deletions
Unified View
Diff Options
-
17backend/data_export/migrations/0002_exportedboundingbox.py
-
4backend/projects/admin.py
-
52backend/projects/migrations/0006_segmentationproject_alter_project_project_type.py
-
16backend/projects/models.py
-
6backend/projects/serializers.py
@ -0,0 +1,52 @@ |
|||||
|
# Generated by Django 4.0.4 on 2022-06-30 04:43 |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
("projects", "0005_boundingboxproject_alter_project_project_type"), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.CreateModel( |
||||
|
name="SegmentationProject", |
||||
|
fields=[ |
||||
|
( |
||||
|
"project_ptr", |
||||
|
models.OneToOneField( |
||||
|
auto_created=True, |
||||
|
on_delete=django.db.models.deletion.CASCADE, |
||||
|
parent_link=True, |
||||
|
primary_key=True, |
||||
|
serialize=False, |
||||
|
to="projects.project", |
||||
|
), |
||||
|
), |
||||
|
], |
||||
|
options={ |
||||
|
"abstract": False, |
||||
|
"base_manager_name": "objects", |
||||
|
}, |
||||
|
bases=("projects.project",), |
||||
|
), |
||||
|
migrations.AlterField( |
||||
|
model_name="project", |
||||
|
name="project_type", |
||||
|
field=models.CharField( |
||||
|
choices=[ |
||||
|
("DocumentClassification", "document classification"), |
||||
|
("SequenceLabeling", "sequence labeling"), |
||||
|
("Seq2seq", "sequence to sequence"), |
||||
|
("IntentDetectionAndSlotFilling", "intent detection and slot filling"), |
||||
|
("Speech2text", "speech to text"), |
||||
|
("ImageClassification", "image classification"), |
||||
|
("BoundingBox", "bounding box"), |
||||
|
("Segmentation", "segmentation"), |
||||
|
], |
||||
|
max_length=30, |
||||
|
), |
||||
|
), |
||||
|
] |
Write
Preview
Loading…
Cancel
Save