@lokalise/ragnarok-api-contracts 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evaluation-contracts.d.ts +18 -16
- package/dist/objects.d.ts +27 -24
- package/dist/objects.js +5 -3
- package/dist/objects.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,14 +20,15 @@ export declare const getEvaluation: import("@lokalise/api-contracts").GetRouteDe
|
|
|
20
20
|
bleu: z.ZodOptional<z.ZodNumber>;
|
|
21
21
|
meteor: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
}, z.core.$strip>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
byLanguagePair: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
24
|
+
referenceTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
actualTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
perfectMatch: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
translationErrorRate: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
bleu: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
meteor: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
31
32
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
33
|
}, z.core.$strip>, z.ZodObject<{
|
|
33
34
|
evaluationId: z.ZodUUID;
|
|
@@ -51,14 +52,15 @@ export declare const getEvaluation: import("@lokalise/api-contracts").GetRouteDe
|
|
|
51
52
|
bleu: z.ZodOptional<z.ZodNumber>;
|
|
52
53
|
meteor: z.ZodOptional<z.ZodNumber>;
|
|
53
54
|
}, z.core.$strip>;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
byLanguagePair: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
|
+
referenceTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
actualTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
perfectMatch: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
translationErrorRate: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
bleu: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
meteor: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>>>;
|
|
62
64
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
63
65
|
}, z.core.$strip>;
|
|
64
66
|
}>;
|
package/dist/objects.d.ts
CHANGED
|
@@ -8,14 +8,15 @@ export declare const CONFIGURATION_RESULT_SCHEMA: z.ZodObject<{
|
|
|
8
8
|
bleu: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
meteor: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}, z.core.$strip
|
|
11
|
+
byLanguagePair: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
12
|
+
referenceTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
actualTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
14
|
+
perfectMatch: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
translationErrorRate: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
bleu: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
meteor: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
}, z.core.$strip>;
|
|
19
20
|
export type ConfigurationResult = z.infer<typeof CONFIGURATION_RESULT_SCHEMA>;
|
|
20
21
|
export declare const RESULT_BY_CONFIGURATION_NAME_SCHEMA: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
21
22
|
global: z.ZodObject<{
|
|
@@ -26,14 +27,15 @@ export declare const RESULT_BY_CONFIGURATION_NAME_SCHEMA: z.ZodRecord<z.ZodStrin
|
|
|
26
27
|
bleu: z.ZodOptional<z.ZodNumber>;
|
|
27
28
|
meteor: z.ZodOptional<z.ZodNumber>;
|
|
28
29
|
}, z.core.$strip>;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, z.core.$strip
|
|
30
|
+
byLanguagePair: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
31
|
+
referenceTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
actualTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
perfectMatch: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
translationErrorRate: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
bleu: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
meteor: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
}, z.core.$strip>>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
37
39
|
export type ResultByConfigurationName = z.infer<typeof RESULT_BY_CONFIGURATION_NAME_SCHEMA>;
|
|
38
40
|
export declare const EVALUATION_SCHEMA: z.ZodObject<{
|
|
39
41
|
id: z.ZodUUID;
|
|
@@ -52,14 +54,15 @@ export declare const EVALUATION_SCHEMA: z.ZodObject<{
|
|
|
52
54
|
bleu: z.ZodOptional<z.ZodNumber>;
|
|
53
55
|
meteor: z.ZodOptional<z.ZodNumber>;
|
|
54
56
|
}, z.core.$strip>;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
byLanguagePair: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
58
|
+
referenceTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
actualTranslationScore: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
perfectMatch: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
translationErrorRate: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
bleu: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
meteor: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
}, z.core.$strip>>>;
|
|
63
66
|
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
64
67
|
}, z.core.$strip>;
|
|
65
68
|
export type Evaluation = z.infer<typeof EVALUATION_SCHEMA>;
|
package/dist/objects.js
CHANGED
|
@@ -24,10 +24,12 @@ const METRICS_SCHEMA = z.object({
|
|
|
24
24
|
});
|
|
25
25
|
export const CONFIGURATION_RESULT_SCHEMA = z
|
|
26
26
|
.object({
|
|
27
|
-
global: METRICS_SCHEMA.describe('
|
|
27
|
+
global: METRICS_SCHEMA.describe('Metrics aggregated across all language pairs'),
|
|
28
|
+
byLanguagePair: z
|
|
29
|
+
.record(z.string(), METRICS_SCHEMA)
|
|
30
|
+
.describe('Metrics per language pair, keyed by "source->target" (e.g. "en-GB->pl-PL")'),
|
|
28
31
|
})
|
|
29
|
-
.
|
|
30
|
-
.describe('Metrics keyed by language pair (e.g. "en->pl") plus a "global" aggregate');
|
|
32
|
+
.describe('Evaluation metrics for a single run configuration');
|
|
31
33
|
export const RESULT_BY_CONFIGURATION_NAME_SCHEMA = z
|
|
32
34
|
.record(z.string(), CONFIGURATION_RESULT_SCHEMA)
|
|
33
35
|
.describe('Evaluation results grouped by configuration name');
|
package/dist/objects.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objects.js","sourceRoot":"","sources":["../src/objects.ts"],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