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.
 
 
 
 
 
 

24 lines
445 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
}
}
}