mirror of https://github.com/doccano/doccano.git
pythondatasetnatural-language-processingdata-labelingmachine-learningannotation-tooldatasetsactive-learningtext-annotation
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.
15 lines
302 B
15 lines
302 B
import { RelationItem } from '~/domain/models/tasks/relation'
|
|
|
|
export class RelationDTO {
|
|
id: number
|
|
fromId: number
|
|
toId: number
|
|
labelId: number
|
|
|
|
constructor(item: RelationItem) {
|
|
this.id = item.id
|
|
this.fromId = item.fromId
|
|
this.toId = item.toId
|
|
this.labelId = item.type
|
|
}
|
|
}
|