Browse Source
Merge pull request #2053 from doccano/fix/1881
Make auto labeling working in intent detection
pull/2054/head
Hiroki Nakayama
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
11 additions and
0 deletions
-
frontend/pages/projects/_id/intent-detection-and-slot-filling/index.vue
|
|
@ -95,6 +95,9 @@ export default { |
|
|
|
this.$route.query.ordering |
|
|
|
) |
|
|
|
const doc = this.docs.items[0] |
|
|
|
if (this.enableAutoLabeling && !doc.isConfirmed) { |
|
|
|
await this.autoLabel(doc.id) |
|
|
|
} |
|
|
|
await this.listSpan(doc.id) |
|
|
|
await this.listCategory(doc.id) |
|
|
|
}, |
|
|
@ -178,6 +181,14 @@ export default { |
|
|
|
await this.listSpan(this.doc.id) |
|
|
|
}, |
|
|
|
|
|
|
|
async autoLabel(docId) { |
|
|
|
try { |
|
|
|
await this.$services.sequenceLabeling.autoLabel(this.projectId, docId) |
|
|
|
} catch (e) { |
|
|
|
console.log(e.response.data.detail) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async updateProgress() { |
|
|
|
this.progress = await this.$services.metrics.fetchMyProgress(this.projectId) |
|
|
|
}, |
|
|
|