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.
20 lines
678 B
20 lines
678 B
import { ProjectType } from '@/domain/models/project/project'
|
|
|
|
export const getLinkToAnnotationPage = (
|
|
projectId: number | string,
|
|
projectType: ProjectType
|
|
): string => {
|
|
const mapping = {
|
|
DocumentClassification: 'text-classification',
|
|
SequenceLabeling: 'sequence-labeling',
|
|
Seq2seq: 'sequence-to-sequence',
|
|
IntentDetectionAndSlotFilling: 'intent-detection-and-slot-filling',
|
|
ImageClassification: 'image-classification',
|
|
ImageCaptioning: 'image-captioning',
|
|
BoundingBox: 'object-detection',
|
|
Segmentation: 'segmentation',
|
|
Speech2text: 'speech-to-text'
|
|
}
|
|
const link = `/projects/${projectId}/${mapping[projectType]}`
|
|
return link
|
|
}
|