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
526 B
20 lines
526 B
import { ParseRepository } from '~/domain/models/upload/parseRepository'
|
|
|
|
export class ParseApplicationService {
|
|
constructor(private readonly repository: ParseRepository) {}
|
|
|
|
public async analyze(
|
|
projectId: string,
|
|
format: string,
|
|
task: string,
|
|
uploadIds: number[],
|
|
option: object
|
|
): Promise<string> {
|
|
const item = await this.repository.analyze(projectId, format, task, uploadIds, option)
|
|
return item
|
|
}
|
|
|
|
public revert(serverId: string): void {
|
|
this.repository.revert(serverId)
|
|
}
|
|
}
|