Browse Source

Enable to create image classification project

pull/1370/head
Hironsan 3 years ago
parent
commit
9ca2a2fe93
3 changed files with 5 additions and 3 deletions
  1. 2
      frontend/components/project/FormCreate.vue
  2. 3
      frontend/domain/models/project/project.ts
  3. 3
      frontend/i18n/en/projects/overview.js

2
frontend/components/project/FormCreate.vue

@ -117,7 +117,7 @@ export default Vue.extend({
computed: {
projectTypes() {
return ['DocumentClassification', 'SequenceLabeling', 'Seq2seq']
return ['DocumentClassification', 'SequenceLabeling', 'Seq2seq', 'ImageClassification']
}
},

3
frontend/domain/models/project/project.ts

@ -169,7 +169,8 @@ export class ProjectWriteItem {
const mapping = {
DocumentClassification: 'TextClassificationProject',
SequenceLabeling : 'SequenceLabelingProject',
Seq2seq : 'Seq2seqProject'
Seq2seq : 'Seq2seqProject',
ImageClassification : 'ImageClassificationProject',
}
return mapping[this.project_type]
}

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

@ -14,6 +14,7 @@ export default {
projectTypes: [
'Text Classification',
'Sequence Labeling',
'Sequence to sequence'
'Sequence to sequence',
'Image Classification'
]
}
Loading…
Cancel
Save