diff --git a/doccano/app/db.sqlite3 b/doccano/app/db.sqlite3 index 0070c20c..551b5495 100644 Binary files a/doccano/app/db.sqlite3 and b/doccano/app/db.sqlite3 differ diff --git a/doccano/app/server/models.py b/doccano/app/server/models.py index 0a7600ac..3ba9899d 100644 --- a/doccano/app/server/models.py +++ b/doccano/app/server/models.py @@ -3,10 +3,12 @@ from django.db import models class Label(models.Model): text = models.CharField(max_length=100) + shortcut = models.CharField(max_length=10) def as_dict(self): return {'id': self.id, - 'text': self.text} + 'text': self.text, + 'shortcut': self.shortcut} class RawData(models.Model): diff --git a/doccano/app/server/templates/annotation.html b/doccano/app/server/templates/annotation.html index a9748f2f..a60e18ac 100644 --- a/doccano/app/server/templates/annotation.html +++ b/doccano/app/server/templates/annotation.html @@ -6,7 +6,7 @@ - Forum - Free Bulma template + doccano - Document Annotation Tool @@ -91,23 +91,23 @@
-
- - - - - Prev - -
-
- - Next - - - - -
+
+ + + + + Prev +
+
+ + Next + + + + +
+
@@ -143,7 +143,9 @@ Active Learning

- Do It! + + Do It! +

@@ -162,8 +164,13 @@ -
- [[label.text]] +
+
+
+ [[label.text]] + [[label.shortcut]] +
+