Browse Source

Update url of annotation repositories

pull/1592/head
Hironsan 2 years ago
parent
commit
fc4bd36a18
3 changed files with 3 additions and 3 deletions
  1. 2
      frontend/repositories/tasks/seq2seq/apiSeq2seq.ts
  2. 2
      frontend/repositories/tasks/sequenceLabeling/apiSequenceLabeling.ts
  3. 2
      frontend/repositories/tasks/textClassification/apiTextClassification.ts

2
frontend/repositories/tasks/seq2seq/apiSeq2seq.ts

@ -14,6 +14,6 @@ export class APISeq2seqRepository extends AnnotationRepository<Seq2seqLabel> {
}
protected baseUrl(projectId: string, docId: number): string {
return `/projects/${projectId}/docs/${docId}/annotations`
return `/projects/${projectId}/examples/${docId}/texts`
}
}

2
frontend/repositories/tasks/sequenceLabeling/apiSequenceLabeling.ts

@ -14,6 +14,6 @@ export class APISequenceLabelingRepository extends AnnotationRepository<Sequence
}
protected baseUrl(projectId: string, docId: number): string {
return `/projects/${projectId}/docs/${docId}/annotations`
return `/projects/${projectId}/examples/${docId}/spans`
}
}

2
frontend/repositories/tasks/textClassification/apiTextClassification.ts

@ -8,6 +8,6 @@ export class APITextClassificationRepository extends AnnotationRepository<TextCl
}
protected baseUrl(projectId: string, docId: number): string {
return `/projects/${projectId}/docs/${docId}/annotations`
return `/projects/${projectId}/examples/${docId}/categories`
}
}
Loading…
Cancel
Save