M7: corpus manifest loader/validation, chrF/BLEU/token/numeric metrics, raw-output and report.md/report.json writer, and sprachmittler-cli languages/detect/eval. A synthetic 4-segment run with the 7B validated the harness; the private-corpus and 1.8B evaluation and the default-model ADR remain open. M8: privacy-check root fixture + seeded self-test wired into make verify; English/German localisation for the app shell; end-user USER_GUIDE; release.sh (unsigned archive, Developer ID sign, notarise/staple, DMG, --dry-run); idle CPU/memory and warm 7B measurements in PERFORMANCE. Docs: PROGRESS M7–M8, MODEL_EVALUATION results log/gate status, PERFORMANCE measurements, TESTING evaluation cases, ADR-008 status. Compatibility/VoiceOver/notarisation gates remain manual. Verified: make verify green (format, strict lint, privacy self-test, Debug+Release signatures, 227 package tests); CLI languages/detect/eval run; release dry-run.
25 lines
692 B
Swift
25 lines
692 B
Swift
import ArgumentParser
|
|
import Foundation
|
|
import SprachmittlerEngines
|
|
|
|
struct LanguagesCommand: ParsableCommand {
|
|
static let configuration = CommandConfiguration(
|
|
commandName: "languages",
|
|
abstract: "List the 102 supported target languages."
|
|
)
|
|
|
|
@Flag(name: .long, help: "Emit JSON.")
|
|
var json = false
|
|
|
|
func run() throws {
|
|
if json {
|
|
let data = try JSONEncoder().encode(HyMT3Languages.all)
|
|
print(String(data: data, encoding: .utf8) ?? "[]")
|
|
return
|
|
}
|
|
for language in HyMT3Languages.all {
|
|
print("\(language.code)\t\(language.modelName)\t\(language.localizedDisplayName)")
|
|
}
|
|
}
|
|
}
|