formula-speech/cases.ts

airi · evals/tts-speech-formula/eval/cases/formula-speech/cases.ts · typescript · MIT
voice

Array of formula speech test cases with LaTeX references and inputs for grading.

// Source: https://github.com/moeru-ai/airi | License: MIT | Copyright 2024-PRESENT Neko Ayaka
// Provided via justclaw.it.com; keep this notice with the code.
import type { Language } from './languages'

/**
 * How a case is graded. Each mode compares the reference with what a listener wrote down.
 *
 * - `symbolic`: equal after normalization, or equivalent by symbolic math. `6/π²` is not `π²/6`.
 * - `norm`: equal after normalization only. Use it when two different forms must not pass.
 * - `chem`: the same species, coefficients, and arrow class.
 * - `currency`: the same dollar amounts, and the same inline math.
 */
export type GradingMode = 'symbolic' | 'norm' | 'chem' | 'currency'

/** One expected item of a currency sentence: an amount in US dollars, or an inline formula. */
export t

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key