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.
17 lines
301 B
17 lines
301 B
export class Span {
|
|
constructor(
|
|
readonly id: number,
|
|
private _label: number,
|
|
readonly user: number,
|
|
readonly startOffset: number,
|
|
readonly endOffset: number
|
|
) {}
|
|
|
|
get label(): number {
|
|
return this._label
|
|
}
|
|
|
|
changeLabel(label: number) {
|
|
this._label = label
|
|
}
|
|
}
|