feat: added confidence data export and visualization

This commit is contained in:
averel10
2026-04-17 13:24:21 +02:00
parent 4c168af9d1
commit a1116e4333
2 changed files with 8 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ export interface ParticipantDetail extends ParticipantListItem {
rating: number;
dialectLabel: string;
createdAt: Date;
confidence: number;
}>;
}
@@ -172,6 +173,7 @@ export async function getParticipantDetail(
rating: annotation.rating,
dialectLabel: annotation.dialectLabel,
createdAt: annotation.createdAt,
confidence: annotation.confidence,
})
.from(annotation)
.leftJoin(dataset_entry, eq(annotation.datasetEntryId, dataset_entry.id))
@@ -201,6 +203,7 @@ export async function getParticipantDetail(
externalId: a.externalId || 'Unknown', fileName: a.fileName || 'Unknown',
datasetId: a.datasetId || 0, rating: a.rating,
dialectLabel: a.dialectLabel,
confidence: a.confidence,
createdAt: a.createdAt,
})),
createdAt: p.createdAt,
@@ -316,6 +319,7 @@ export async function exportParticipantDataAsJson(
fileName: ann.fileName,
datasetId: ann.datasetId,
rating: ann.rating,
confidence: ann.confidence,
dialectLabel: ann.dialectLabel,
createdAt: ann.createdAt,
})),