Browse Source

Add text classification model

pull/1251/head
Hironsan 3 years ago
parent
commit
ce9fced368
1 changed files with 22 additions and 0 deletions
  1. 22
      frontend/models/tasks/text-classification.ts

22
frontend/models/tasks/text-classification.ts

@ -0,0 +1,22 @@
export class TextClassificationItem {
constructor(
public id: number,
public label: number,
public user: number,
) {}
static valueOf(
{ id, label, user }:
{ id: number, label: number, user: number }
): TextClassificationItem {
return new TextClassificationItem(id, label, user)
}
toObject(): Object {
return {
id: this.id,
label: this.label,
user: this.user
}
}
}
Loading…
Cancel
Save