mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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
724 B
20 lines
724 B
import { MetricsRepository } from '~/domain/models/metrics/metricsRepository'
|
|
import { Progress, Distribution } from '~/domain/models/metrics/metrics'
|
|
|
|
export class MetricsApplicationService {
|
|
constructor(
|
|
private readonly repository: MetricsRepository
|
|
) {}
|
|
|
|
public async fetchMemberProgress(projectId: string): Promise<Progress> {
|
|
return await this.repository.fetchMemberProgress(projectId)
|
|
}
|
|
|
|
public async fetchCategoryDistribution(projectId: string): Promise<Distribution> {
|
|
return await this.repository.fetchCategoryDistribution(projectId)
|
|
}
|
|
|
|
public async fetchSpanDistribution(projectId: string): Promise<Distribution> {
|
|
return await this.repository.fetchSpanDistribution(projectId)
|
|
}
|
|
}
|