mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
430 B
22 lines
430 B
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
|
|
}
|
|
}
|
|
}
|