@@ -9,12 +9,12 @@ import type {
99 ConfusionWrapper ,
1010 DistributionWrapper ,
1111 Metrics ,
12- TermComparison ,
12+ TermComparison
1313} from "@/types/evaluation"
1414import type {
1515 DocumentEntities ,
1616 JobEntities ,
17- JobsEntities ,
17+ JobsEntities
1818} from "@/types/evaluation/entities"
1919
2020type ConfusionResponse = AxiosResponse < ConfusionWrapper >
@@ -41,12 +41,12 @@ const downloadPath = (corpus: UUID, hypothesis: string): string =>
4141const documentLayerComparisonPath = (
4242 corpus : UUID ,
4343 job : string ,
44- document : string ,
44+ document : string
4545) : string => `/corpora/${ corpus } /jobs/${ job } /documents/${ document } /evaluation`
4646const documentEntitiesPath = (
4747 corpus : UUID ,
4848 job : string ,
49- document : string ,
49+ document : string
5050) : string => `/corpora/${ corpus } /jobs/${ job } /documents/${ document } /entities`
5151const jobEntitiesPath = ( corpus : UUID , job : string ) : string =>
5252 `${ evaluationPath ( corpus , job ) } /entities`
@@ -59,7 +59,7 @@ const jobsEntitiesPath = (corpus: UUID): string =>
5959 */
6060export function getDistribution (
6161 corpus : UUID ,
62- hypothesis : string ,
62+ hypothesis : string
6363) : Promise < DistributionResponse > {
6464 return axios . get ( distributionPath ( corpus , hypothesis ) )
6565}
@@ -73,10 +73,10 @@ export function getDistribution(
7373export function getConfusion (
7474 corpus : UUID ,
7575 hypothesis : string ,
76- reference : string ,
76+ reference : string
7777) : Promise < ConfusionResponse > {
7878 return axios . get ( confusionPath ( corpus , hypothesis ) , {
79- params : { reference } ,
79+ params : { reference }
8080 } )
8181}
8282
@@ -89,7 +89,7 @@ export function getConfusion(
8989export function getMetrics (
9090 corpus : UUID ,
9191 hypothesis : string ,
92- reference : string ,
92+ reference : string
9393) : Promise < MetricsResponse > {
9494 return axios . get ( metricsPath ( corpus , hypothesis ) , { params : { reference } } )
9595}
@@ -103,10 +103,10 @@ export function getMetrics(
103103export function getDownloadEvaluation (
104104 corpus : UUID ,
105105 hypothesis : string ,
106- reference : string ,
106+ reference : string
107107) : Promise < BlobResponse > {
108108 return getBlob ( downloadPath ( corpus , hypothesis ) , {
109- params : { reference } ,
109+ params : { reference }
110110 } )
111111}
112112
@@ -124,10 +124,10 @@ export function getConfusionSamples(
124124 reference : string ,
125125 hypoFilter : string ,
126126 refFilter : string ,
127- annotationType : string ,
127+ annotationType : string
128128) : Promise < BlobResponse > {
129129 return getBlob ( confusionSamplesPath ( corpus , hypothesis ) , {
130- params : { reference, hypoFilter, refFilter, annotationType } ,
130+ params : { reference, hypoFilter, refFilter, annotationType }
131131 } )
132132}
133133
@@ -146,12 +146,12 @@ export function getMetricsSamples(
146146 reference : string ,
147147 setting : string ,
148148 classType : string ,
149- group ?: string ,
149+ group ?: string
150150) : Promise < BlobResponse > {
151151 const params : Record < string , string > = {
152152 reference,
153153 metricsType : setting ,
154- class : classType ,
154+ class : classType
155155 }
156156 if ( group ) {
157157 params . group = group
@@ -171,24 +171,24 @@ export function getDocumentLayerComparison(
171171 corpus : UUID ,
172172 job : string ,
173173 document : string ,
174- reference : string ,
174+ reference : string
175175) : Promise < AxiosResponse < TermComparison [ ] > > {
176176 return axios . get ( documentLayerComparisonPath ( corpus , job , document ) , {
177- params : { reference } ,
177+ params : { reference }
178178 } )
179179}
180180
181181export function getDocumentEntities (
182182 corpus : UUID ,
183183 job : string ,
184- document : string ,
184+ document : string
185185) : Promise < DocumentEntitiesResponse > {
186186 return axios . get ( documentEntitiesPath ( corpus , job , document ) )
187187}
188188
189189export function getJobEntities (
190190 corpus : UUID ,
191- job : string ,
191+ job : string
192192) : Promise < JobEntitiesResponse > {
193193 return axios . get ( jobEntitiesPath ( corpus , job ) )
194194}
0 commit comments