From 88ae8cef25ba8037f374649269244ddfbae5ae3b Mon Sep 17 00:00:00 2001 From: Hironsan Date: Sun, 31 Jul 2022 09:30:31 +0900 Subject: [PATCH] Rename file names --- .../domain/models/tasks/{textClassification.ts => category.ts} | 0 frontend/domain/models/tasks/{sequenceLabeling.ts => span.ts} | 0 frontend/domain/models/tasks/{seq2seq.ts => textLabel.ts} | 0 frontend/repositories/tasks/apiSeq2seq.ts | 2 +- frontend/repositories/tasks/apiSequenceLabeling.ts | 2 +- frontend/repositories/tasks/apiTextClassification.ts | 2 +- .../application/tasks/seq2seq/seq2seqApplicationService.ts | 2 +- frontend/services/application/tasks/seq2seq/seq2seqData.ts | 2 +- .../sequenceLabeling/sequenceLabelingApplicationService.ts | 2 +- .../application/tasks/sequenceLabeling/sequenceLabelingData.ts | 2 +- .../textClassification/textClassificationApplicationService.ts | 2 +- .../tasks/textClassification/textClassificationData.ts | 2 +- 12 files changed, 9 insertions(+), 9 deletions(-) rename frontend/domain/models/tasks/{textClassification.ts => category.ts} (100%) rename frontend/domain/models/tasks/{sequenceLabeling.ts => span.ts} (100%) rename frontend/domain/models/tasks/{seq2seq.ts => textLabel.ts} (100%) diff --git a/frontend/domain/models/tasks/textClassification.ts b/frontend/domain/models/tasks/category.ts similarity index 100% rename from frontend/domain/models/tasks/textClassification.ts rename to frontend/domain/models/tasks/category.ts diff --git a/frontend/domain/models/tasks/sequenceLabeling.ts b/frontend/domain/models/tasks/span.ts similarity index 100% rename from frontend/domain/models/tasks/sequenceLabeling.ts rename to frontend/domain/models/tasks/span.ts diff --git a/frontend/domain/models/tasks/seq2seq.ts b/frontend/domain/models/tasks/textLabel.ts similarity index 100% rename from frontend/domain/models/tasks/seq2seq.ts rename to frontend/domain/models/tasks/textLabel.ts diff --git a/frontend/repositories/tasks/apiSeq2seq.ts b/frontend/repositories/tasks/apiSeq2seq.ts index 69b4d0d4..cc7f70a8 100644 --- a/frontend/repositories/tasks/apiSeq2seq.ts +++ b/frontend/repositories/tasks/apiSeq2seq.ts @@ -1,5 +1,5 @@ import { AnnotationRepository } from '@/domain/models/tasks/annotationRepository' -import { TextLabel } from '@/domain/models/tasks/seq2seq' +import { TextLabel } from '@/domain/models/tasks/textLabel' export class APISeq2seqRepository extends AnnotationRepository { labelName = 'texts' diff --git a/frontend/repositories/tasks/apiSequenceLabeling.ts b/frontend/repositories/tasks/apiSequenceLabeling.ts index f07ced13..7b08ff25 100644 --- a/frontend/repositories/tasks/apiSequenceLabeling.ts +++ b/frontend/repositories/tasks/apiSequenceLabeling.ts @@ -1,5 +1,5 @@ import { AnnotationRepository } from '@/domain/models/tasks/annotationRepository' -import { Span } from '@/domain/models/tasks/sequenceLabeling' +import { Span } from '@/domain/models/tasks/span' export class APISequenceLabelingRepository extends AnnotationRepository { labelName = 'spans' diff --git a/frontend/repositories/tasks/apiTextClassification.ts b/frontend/repositories/tasks/apiTextClassification.ts index 879a2a0c..60abcbc2 100644 --- a/frontend/repositories/tasks/apiTextClassification.ts +++ b/frontend/repositories/tasks/apiTextClassification.ts @@ -1,5 +1,5 @@ import { AnnotationRepository } from '@/domain/models/tasks/annotationRepository' -import { Category } from '@/domain/models/tasks/textClassification' +import { Category } from '@/domain/models/tasks/category' export class APITextClassificationRepository extends AnnotationRepository { labelName = 'categories' diff --git a/frontend/services/application/tasks/seq2seq/seq2seqApplicationService.ts b/frontend/services/application/tasks/seq2seq/seq2seqApplicationService.ts index 3b596ea2..10881d31 100644 --- a/frontend/services/application/tasks/seq2seq/seq2seqApplicationService.ts +++ b/frontend/services/application/tasks/seq2seq/seq2seqApplicationService.ts @@ -1,4 +1,4 @@ -import { TextLabel } from '@/domain/models/tasks/seq2seq' +import { TextLabel } from '@/domain/models/tasks/textLabel' import { AnnotationApplicationService } from '../annotationApplicationService' import { Seq2seqDTO } from './seq2seqData' diff --git a/frontend/services/application/tasks/seq2seq/seq2seqData.ts b/frontend/services/application/tasks/seq2seq/seq2seqData.ts index 7d760d4e..b2d39380 100644 --- a/frontend/services/application/tasks/seq2seq/seq2seqData.ts +++ b/frontend/services/application/tasks/seq2seq/seq2seqData.ts @@ -1,4 +1,4 @@ -import { TextLabel } from '@/domain/models/tasks/seq2seq' +import { TextLabel } from '@/domain/models/tasks/textLabel' export class Seq2seqDTO { id: number diff --git a/frontend/services/application/tasks/sequenceLabeling/sequenceLabelingApplicationService.ts b/frontend/services/application/tasks/sequenceLabeling/sequenceLabelingApplicationService.ts index 6d30e1c0..a1e95c0d 100644 --- a/frontend/services/application/tasks/sequenceLabeling/sequenceLabelingApplicationService.ts +++ b/frontend/services/application/tasks/sequenceLabeling/sequenceLabelingApplicationService.ts @@ -1,6 +1,6 @@ import { APISequenceLabelingRepository } from '@/repositories/tasks/apiSequenceLabeling' import { APIRelationRepository } from '@/repositories/tasks/apiRelationRepository' -import { Span } from '@/domain/models/tasks/sequenceLabeling' +import { Span } from '@/domain/models/tasks/span' import { Relation } from '@/domain/models/tasks/relation' import { AnnotationApplicationService } from '../annotationApplicationService' import { RelationDTO } from './relationData' diff --git a/frontend/services/application/tasks/sequenceLabeling/sequenceLabelingData.ts b/frontend/services/application/tasks/sequenceLabeling/sequenceLabelingData.ts index e2aadda0..847fffdc 100644 --- a/frontend/services/application/tasks/sequenceLabeling/sequenceLabelingData.ts +++ b/frontend/services/application/tasks/sequenceLabeling/sequenceLabelingData.ts @@ -1,4 +1,4 @@ -import { Span } from '@/domain/models/tasks/sequenceLabeling' +import { Span } from '@/domain/models/tasks/span' export class SpanDTO { id: number diff --git a/frontend/services/application/tasks/textClassification/textClassificationApplicationService.ts b/frontend/services/application/tasks/textClassification/textClassificationApplicationService.ts index 39125145..135aebbd 100644 --- a/frontend/services/application/tasks/textClassification/textClassificationApplicationService.ts +++ b/frontend/services/application/tasks/textClassification/textClassificationApplicationService.ts @@ -1,4 +1,4 @@ -import { Category } from '@/domain/models/tasks/textClassification' +import { Category } from '@/domain/models/tasks/category' import { AnnotationApplicationService } from '../annotationApplicationService' import { TextClassificationDTO } from './textClassificationData' diff --git a/frontend/services/application/tasks/textClassification/textClassificationData.ts b/frontend/services/application/tasks/textClassification/textClassificationData.ts index d62898c4..94af9c8d 100644 --- a/frontend/services/application/tasks/textClassification/textClassificationData.ts +++ b/frontend/services/application/tasks/textClassification/textClassificationData.ts @@ -1,4 +1,4 @@ -import { Category } from '@/domain/models/tasks/textClassification' +import { Category } from '@/domain/models/tasks/category' export class TextClassificationDTO { id: number