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.
17 lines
417 B
17 lines
417 B
import { AnnotationModel } from './interface'
|
|
|
|
export class Seq2seqLabel implements AnnotationModel {
|
|
constructor(public id: number, public text: string, public user: number) {}
|
|
|
|
static valueOf({ id, text, user }: { id: number; text: string; user: number }) {
|
|
return new Seq2seqLabel(id, text, user)
|
|
}
|
|
|
|
toObject() {
|
|
return {
|
|
id: this.id,
|
|
text: this.text,
|
|
user: this.user
|
|
}
|
|
}
|
|
}
|