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.
27 lines
545 B
27 lines
545 B
import { LinkTypeItem, LinkItem } from '~/domain/models/links/link'
|
|
|
|
export class LinkTypeDTO {
|
|
id: number
|
|
name: string
|
|
color: string
|
|
|
|
constructor(item: LinkTypeItem) {
|
|
this.id = item.id
|
|
this.name = item.name
|
|
this.color = item.color
|
|
}
|
|
}
|
|
|
|
export class LinkDTO {
|
|
id: number
|
|
annotation_id_1: number
|
|
annotation_id_2: number
|
|
type: number
|
|
|
|
constructor(item: LinkItem) {
|
|
this.id = item.id
|
|
this.annotation_id_1 = item.annotation_id_1
|
|
this.annotation_id_2 = item.annotation_id_2
|
|
this.type = item.type
|
|
}
|
|
}
|