diff --git a/frontend/components/project/FormCreate.vue b/frontend/components/project/FormCreate.vue index 2fb2e183..86095449 100644 --- a/frontend/components/project/FormCreate.vue +++ b/frontend/components/project/FormCreate.vue @@ -117,7 +117,13 @@ export default Vue.extend({ computed: { projectTypes() { - return ['DocumentClassification', 'SequenceLabeling', 'Seq2seq', 'ImageClassification'] + return [ + 'DocumentClassification', + 'SequenceLabeling', + 'Seq2seq', + 'ImageClassification', + 'Speech2text', + ] }, hasSingleLabelOption() { return [ diff --git a/frontend/domain/models/project/project.ts b/frontend/domain/models/project/project.ts index 9eb572c2..eab59ef5 100644 --- a/frontend/domain/models/project/project.ts +++ b/frontend/domain/models/project/project.ts @@ -4,7 +4,7 @@ export interface CurrentUsersRole { is_annotation_approver: boolean; } -export type ProjectType = 'DocumentClassification' | 'SequenceLabeling' | 'Seq2seq' | 'ImageClassification' +export type ProjectType = 'DocumentClassification' | 'SequenceLabeling' | 'Seq2seq' | 'ImageClassification' | 'Speech2text' export class ProjectReadItem { @@ -79,6 +79,7 @@ export class ProjectReadItem { SequenceLabeling : 'sequence-labeling', Seq2seq : 'sequence-to-sequence', ImageClassification : 'image-classification', + Speech2text : 'speech-to-text', } const url = `/projects/${this.id}/${mapping[this.project_type]}` return url @@ -98,6 +99,8 @@ export class ProjectReadItem { return 'texts__isnull' } else if (this.project_type === 'ImageClassification') { return 'categories__isnull' + } else if (this.project_type === 'Speech2text') { + return 'texts__isnull' } else { return '' } @@ -174,6 +177,7 @@ export class ProjectWriteItem { SequenceLabeling : 'SequenceLabelingProject', Seq2seq : 'Seq2seqProject', ImageClassification : 'ImageClassificationProject', + Speech2text : 'Speech2textProject', } return mapping[this.project_type] } diff --git a/frontend/i18n/en/projects/overview.js b/frontend/i18n/en/projects/overview.js index 262e08b6..263a6638 100644 --- a/frontend/i18n/en/projects/overview.js +++ b/frontend/i18n/en/projects/overview.js @@ -15,6 +15,7 @@ export default { 'Text Classification', 'Sequence Labeling', 'Sequence to sequence', - 'Image Classification' + 'Image Classification', + 'Speech to Text', ] }