Direkte DeepSeek- und Mistral-Anbindung mit versionierten Aktionsprofilen, Budgetreservierung, Tokenabrechnung und administrativen Qualitätsprüfungen ersetzen die Flowise-Abhängigkeit im regulären Betrieb. 840 geprüfte A1-Aufgaben mit geschützter Testauswertung und konkreten offenen Arbeitsaufträgen ergänzen den Kurs. Inhalts- und Sprachbewertung bleiben von Azure-Aussprachewerten getrennt; historische Aufgaben und Antworten bleiben erhalten. Echte Wort- und Phonemmessungen werden mit Herkunft, Aktualität und Nachweisdichte gebündelt. Go bestimmt Trainingsziele und Wiederholungen, das Modell formuliert dazu passende Nachsprechübungen. Profilansicht und Auswahlgründe werden angezeigt. Validierung: Go-Race-Tests mit lokaler PostgreSQL-Integration, go vet, Web-Build, Audit aller 840 Aufgaben und drei Browser-Smokes mit lokalen Modell-/Speech-Fixtures bestanden. Keine Produktionsänderungen oder Live-Aufrufe.
74 lines
3.0 KiB
Go
74 lines
3.0 KiB
Go
package domain
|
|
|
|
import "time"
|
|
|
|
const PronunciationAlgorithm = "pronunciation-v1"
|
|
|
|
type PronunciationObservation struct {
|
|
AssessmentID string `json:"assessment_id"`
|
|
ExerciseID string `json:"exercise_id"`
|
|
Language string `json:"language"`
|
|
Locale string `json:"locale"`
|
|
Alphabet string `json:"alphabet"`
|
|
Kind string `json:"kind"`
|
|
Symbol string `json:"symbol"`
|
|
Word string `json:"word"`
|
|
WordIndex int `json:"word_index"`
|
|
PhonemeIndex int `json:"phoneme_index"`
|
|
Accuracy float64 `json:"accuracy"`
|
|
At time.Time `json:"at"`
|
|
}
|
|
|
|
type PronunciationExample struct {
|
|
Word string `json:"word"`
|
|
Mean float64 `json:"mean"`
|
|
Samples int `json:"samples"`
|
|
}
|
|
|
|
type PronunciationTarget struct {
|
|
Key string `json:"key"`
|
|
Kind string `json:"kind"`
|
|
Locale string `json:"locale"`
|
|
Alphabet string `json:"alphabet"`
|
|
Symbol string `json:"symbol"`
|
|
Mean float64 `json:"mean"`
|
|
WeakRate float64 `json:"weak_rate"`
|
|
Observations int `json:"observations"`
|
|
Samples int `json:"samples"`
|
|
Recordings int `json:"recordings"`
|
|
Tasks int `json:"tasks"`
|
|
Words int `json:"words"`
|
|
State string `json:"state"`
|
|
Trend string `json:"trend"`
|
|
LastSeen time.Time `json:"last_seen"`
|
|
NextReview *time.Time `json:"next_review,omitempty"`
|
|
ReviewDue bool `json:"review_due"`
|
|
Examples []PronunciationExample `json:"examples"`
|
|
Priority float64 `json:"priority"`
|
|
}
|
|
|
|
type PronunciationProfile struct {
|
|
Algorithm string `json:"algorithm"`
|
|
Language string `json:"language"`
|
|
AsOf time.Time `json:"as_of"`
|
|
WindowDays int `json:"window_days"`
|
|
ConfirmedRecordings int `json:"confirmed_recordings"`
|
|
UnverifiedHistory int `json:"unverified_history"`
|
|
Targets []PronunciationTarget `json:"targets"`
|
|
}
|
|
|
|
type PronunciationPlan struct {
|
|
ID string `json:"id"`
|
|
Algorithm string `json:"algorithm"`
|
|
Language string `json:"language"`
|
|
Category string `json:"category"`
|
|
Mode string `json:"mode"`
|
|
Reason string `json:"reason"`
|
|
Target *PronunciationTarget `json:"target,omitempty"`
|
|
RequiredWords []string `json:"required_practice_words"`
|
|
KnownWords []string `json:"known_words"`
|
|
CandidateWord string `json:"candidate_word,omitempty"`
|
|
TransferStatus string `json:"transfer_status,omitempty"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|