Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make auto labeling working in intent detection #2053

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix #1881
  • Loading branch information
Hironsan committed Nov 16, 2022
commit f73d7d345b8268022cf758353fa65fd0d56fd295
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