Browse Source

Add tasks to project creation page

pull/1899/head
Hironsan 2 years ago
parent
commit
abfcd44dba
7 changed files with 36 additions and 1 deletions
  1. 1
      frontend/components/layout/TheHeader.vue
  2. 6
      frontend/components/project/FormCreate.vue
  3. 9
      frontend/domain/models/project/project.ts
  4. 3
      frontend/i18n/de/projects/overview.js
  5. 3
      frontend/i18n/en/projects/overview.js
  6. 3
      frontend/i18n/fr/projects/overview.js
  7. 12
      frontend/i18n/zh/projects/overview.js

1
frontend/components/layout/TheHeader.vue

@ -101,6 +101,7 @@ export default {
},
{ title: this.$t('home.demoTextToSQL'), link: 'text-to-sql' },
{ title: 'Image Classification', link: 'image-classification' },
{ title: 'Image Captioning', link: 'image-caption' },
{ title: 'Object Detection', link: 'object-detection' },
{ title: 'Polygon Segmentation', link: 'segmentation' },
{ title: 'Speech to Text', link: 'speech-to-text' }

6
frontend/components/project/FormCreate.vue

@ -204,6 +204,9 @@ export default Vue.extend({
'Seq2seq',
'IntentDetectionAndSlotFilling',
'ImageClassification',
'ImageCaptioning',
'BoundingBox',
'Segmentation',
'Speech2text'
]
},
@ -214,6 +217,9 @@ export default Vue.extend({
'seq2seq.png',
'intent_detection.png',
'image_classification.png',
'image_classification.png', // image captioning
'image_classification.png', // bounding box
'image_classification.png', // segmentation
'speech_to_text.png'
]
},

9
frontend/domain/models/project/project.ts

@ -7,6 +7,9 @@ export type ProjectType =
| 'Seq2seq'
| 'IntentDetectionAndSlotFilling'
| 'ImageClassification'
| 'ImageCaptioning'
| 'BoundingBox'
| 'Segmentation'
| 'Speech2text'
export class ProjectReadItem {
@ -66,6 +69,9 @@ export class ProjectReadItem {
Seq2seq: 'sequence-to-sequence',
IntentDetectionAndSlotFilling: 'intent-detection-and-slot-filling',
ImageClassification: 'image-classification',
ImageCaptioning: 'image-captioning',
BoundingBox: 'object-detection',
Segmentation: 'segmentation',
Speech2text: 'speech-to-text'
}
const url = `/projects/${this.id}/${mapping[this.projectType]}`
@ -113,6 +119,9 @@ export class ProjectWriteItem {
Seq2seq: 'Seq2seqProject',
IntentDetectionAndSlotFilling: 'IntentDetectionAndSlotFillingProject',
ImageClassification: 'ImageClassificationProject',
ImageCaptioning: 'ImageCaptioningProject',
BoundingBox: 'BoundingBoxProject',
Segmentation: 'SegmentationProject',
Speech2text: 'Speech2textProject'
}
return mapping[this.project_type]

3
frontend/i18n/de/projects/overview.js

@ -17,6 +17,9 @@ export default {
'Sequenz zu Sequenz',
'Intent-Erkennung und Slot-Füllung',
'Bildklassifikation',
'Bildbeschriftung',
'Objekt-Erkennung',
'Segmentierung',
'Sprache zu Text'
]
}

3
frontend/i18n/en/projects/overview.js

@ -17,6 +17,9 @@ export default {
'Sequence to sequence',
'Intent Detection and Slot Filling',
'Image Classification',
'Image Captioning',
'Object Detection',
'Segmentation',
'Speech to Text'
]
}

3
frontend/i18n/fr/projects/overview.js

@ -15,6 +15,9 @@ export default {
'Séquence à séquence',
"Détection d'intention et remplissage d'emplacements",
"Classification d'images",
"Sous-titrage d'images",
"Détection d'objets",
'Segmentation',
'De la parole au texte'
]
}

12
frontend/i18n/zh/projects/overview.js

@ -11,5 +11,15 @@ export default {
deleteProjectTitle: '删除项目',
deleteProjectMessage: '你确定要删除这些项目吗?',
search: '搜索',
projectTypes: ['文本分类', '序列标注', '序列到序列', '意图检测和槽填充', '图像分类', '文字转语音']
projectTypes: [
'文本分类',
'序列标注',
'序列到序列',
'意图检测和槽填充',
'图像分类',
'图像说明',
'对象检测',
'分割',
'文字转语音'
]
}
Loading…
Cancel
Save