-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: Audio transcript review #11
base: master
Are you sure you want to change the base?
Changes from all commits
6bfe422
ee5c4dd
c1a7226
a3cca19
ab78fbc
30b0ffc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,9 @@ | |
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
env/ | ||
*.wav | ||
.env | ||
|
||
# Icon must end with two \r | ||
Icon | ||
|
@@ -200,3 +203,4 @@ bundle/ | |
webpack-stats.json | ||
|
||
.vscode | ||
local.env | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider moving this to the |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Generated by Django 2.1.11 on 2019-12-18 01:34 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider squashing these migrations (see manage.py squashmigrations) so that we have a single/atomic migration for the new functionality. |
||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Conversation', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('meta', models.TextField(default='{}')), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('updated_at', models.DateTimeField(auto_now=True)), | ||
('audio_url', models.TextField(default='')), | ||
('audio_file', models.FileField(upload_to='')), | ||
('documents', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='conversation', to='api.Document')), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='ConversationsProject', | ||
fields=[ | ||
('project_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.Project')), | ||
], | ||
options={ | ||
'abstract': False, | ||
'base_manager_name': 'objects', | ||
}, | ||
bases=('api.project',), | ||
), | ||
migrations.AlterField( | ||
model_name='project', | ||
name='project_type', | ||
field=models.CharField(choices=[('DocumentClassification', 'document classification'), ('SequenceLabeling', 'sequence labeling'), ('Seq2seq', 'sequence to sequence'), ('Conversations', 'conversations validation and labelling')], max_length=30), | ||
), | ||
migrations.AddField( | ||
model_name='conversation', | ||
name='project', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='conversations', to='api.ConversationsProject'), | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 2.1.11 on 2019-12-18 02:03 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0002_auto_20191218_0134'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='conversation', | ||
old_name='documents', | ||
new_name='document', | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='conversation', | ||
unique_together={('project', 'document')}, | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Generated by Django 2.1.11 on 2019-12-18 02:44 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0003_auto_20191218_0203'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ConversationItem', | ||
fields=[ | ||
('document_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='api.Document')), | ||
('start_timestamp', models.TimeField()), | ||
('end_timestamp', models.TimeField()), | ||
], | ||
bases=('api.document',), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='conversation', | ||
unique_together=set(), | ||
), | ||
migrations.AddField( | ||
model_name='conversationitem', | ||
name='conversation', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='conversation_item', to='api.Conversation'), | ||
), | ||
migrations.RemoveField( | ||
model_name='conversation', | ||
name='document', | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Generated by Django 2.1.11 on 2019-12-18 17:04 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('contenttypes', '0002_remove_content_type_name'), | ||
('api', '0004_auto_20191218_0244'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='conversationitem', | ||
options={'base_manager_name': 'objects'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='document', | ||
options={'base_manager_name': 'objects'}, | ||
), | ||
migrations.RemoveField( | ||
model_name='conversationitem', | ||
name='end_timestamp', | ||
), | ||
migrations.RemoveField( | ||
model_name='conversationitem', | ||
name='start_timestamp', | ||
), | ||
migrations.AddField( | ||
model_name='conversationitem', | ||
name='end_time', | ||
field=models.FloatField(default=0), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='conversationitem', | ||
name='machine_text', | ||
field=models.TextField(default=''), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='conversationitem', | ||
name='start_time', | ||
field=models.FloatField(default=0), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='document', | ||
name='polymorphic_ctype', | ||
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_api.document_set+', to='contenttypes.ContentType'), | ||
), | ||
migrations.AlterField( | ||
model_name='conversationitem', | ||
name='conversation', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='conversation_items', to='api.Conversation'), | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Generated by Django 2.1.11 on 2019-12-18 17:40 | ||
|
||
from django.conf import settings | ||
import django.contrib.postgres.fields.jsonb | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('api', '0005_auto_20191218_1704'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ConversationItemAnnotation', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('prob', models.FloatField(default=0.0)), | ||
('manual', models.BooleanField(default=False)), | ||
('created_at', models.DateTimeField(auto_now_add=True)), | ||
('updated_at', models.DateTimeField(auto_now=True)), | ||
('text', models.TextField()), | ||
('start_offset', models.IntegerField()), | ||
('end_offset', models.IntegerField()), | ||
('document', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='conversation_annotations', to='api.Document')), | ||
('label', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Label')), | ||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
migrations.AlterField( | ||
model_name='conversation', | ||
name='audio_file', | ||
field=models.FileField(upload_to='audio'), | ||
), | ||
migrations.AlterField( | ||
model_name='conversation', | ||
name='meta', | ||
field=django.contrib.postgres.fields.jsonb.JSONField(blank=True), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='conversationitemannotation', | ||
unique_together={('start_offset', 'end_offset', 'label', 'document')}, | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.11 on 2019-12-19 00:05 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0006_auto_20191218_1740'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='conversationitem', | ||
name='text_validated', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.11 on 2019-12-20 13:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0007_conversationitem_text_validated'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='conversation', | ||
name='meta', | ||
field=models.TextField(default='{}'), | ||
), | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.1.11 on 2020-01-13 09:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('api', '0008_auto_20191220_1329'), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name='conversationitem', | ||
old_name='text_validated', | ||
new_name='is_validated', | ||
), | ||
migrations.AddField( | ||
model_name='conversationitem', | ||
name='is_ignored', | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the
env/
and.env
lines can be removed since they should already be git-ignored:doccano/.gitignore
Lines 114 to 121 in 5942bbf