Skip to content

Commit

Permalink
Merge pull request #2053 from doccano/fix/1881
Browse files Browse the repository at this point in the history
Make auto labeling working in intent detection
  • Loading branch information
Hironsan authored Nov 16, 2022
2 parents 5b01c33 + f73d7d3 commit c502218
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand Down Expand Up @@ -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)
},
Expand Down

0 comments on commit c502218

Please sign in to comment.