|
Download README.md from Hugdrigo/lexibench-multilingual-lab: direct link, hf CLI and curl.
- Browser
- Download file 4.96 kB
-
https://huggingface.co/spaces/Hugdrigo/lexibench-multilingual-lab/resolve/main/README.md
- Command line
-
hf download hf://spaces/Hugdrigo/lexibench-multilingual-lab/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Hugdrigo/lexibench-multilingual-lab/resolve/main/README.md
4.96 kB
| title: "LexiBench | Multilingual AI Evaluation Lab" | |
| emoji: 🧪 | |
| colorFrom: green | |
| colorTo: blue | |
| sdk: static | |
| app_file: index.html | |
| pinned: false | |
| license: mit | |
| short_description: "Offline bilingual LLM response evaluation" | |
| tags: | |
| - evaluation | |
| - natural-language-processing | |
| - multilingual | |
| - model-evaluation | |
| - benchmarking | |
| - javascript | |
| # LexiBench: Multilingual AI Evaluation & Reliability Laboratory | |
| **LexiBench** is a standalone, client-side research dashboard for **paired comparison of text responses in English and Spanish**. It compares a baseline response system (A) and candidate response system (B) against the **same curated reference** on every example. | |
| > **Scope:** This is an offline evaluation and educational software demonstration. It does not call or run any external language model. All included sample answers are **synthetic**, not outputs collected from commercial AI systems. | |
| ## What you can do | |
| | Module | Function | | |
| | --- | --- | | |
| | Evaluation Overview | Compare paired aggregate lexical similarity scores, individual wins and ties, language results, and domain results. | | |
| | Slice Diagnostics | Compare quality across language, domain and difficulty with consistent metrics. | | |
| | Statistical Uncertainty | Generate seeded paired bootstrap percentile intervals and an exploratory two-sided sign-flip test. | | |
| | Case Explorer | Inspect references and side-by-side outputs with per-case scores and search. | | |
| | Dataset Workbench | Import validated paired CSV datasets, download a template, export results, JSON and HTML reports. | | |
| | Methods & Limitations | Inspect exact metric definitions, reproducibility information, and interpretive cautions. | | |
| ### Metrics | |
| 1. **Exact match:** exact equivalence after Unicode normalization, case folding, and removal of punctuation. | |
| 2. **Token F1:** word-level overlapping precision/recall F1, with repetition counts preserved. | |
| 3. **ROUGE-L F1:** longest common token subsequence F1 (inputs capped at 240 tokens for runtime safety). | |
| 4. **chrF (lightweight):** recall-weighted character n-gram F-score for n=1,2,3. **Not equivalent to sacreBLEU chrF**. | |
| 5. **Illustrative composite:** `0.50 * token F1 + 0.30 * ROUGE-L F1 + 0.20 * chrF`. | |
| Bootstrap calculations use deterministic seeded resampling of complete (A,B) pairs and report a 95% percentile interval. An approximate sign-flip p-value is also shown; both require careful assumptions and are exploratory. This is **not** a causal or deployment safety evaluation. | |
| ## Using your own data | |
| Open **Dataset Workbench** and download the CSV template. Required columns: | |
| ```text | |
| id,language,domain,difficulty,prompt,reference,model_a,model_b | |
| ``` | |
| - `language`: `en` or `es`. | |
| - Include at least **two records**, at most **1,200 records**, and upload a file smaller than **2.5 MB**. | |
| - Every record needs a unique `id` and nonempty values in the remaining required fields. | |
| - Valid CSV quoting allows embedded commas, double quotes and newlines. | |
| - An invalid CSV is rejected without destroying the current dataset. | |
| - Import happens in browser memory. Data is never uploaded to a server by the app. | |
| **Privacy:** Do not put personal/confidential information in a public repository. The application processes CSV data locally, but screenshots and exported files may reveal it. | |
| ## Reproduce locally | |
| Open `index.html` in any modern browser supporting Unicode regular expressions and `Blob`. No package manager, server, API key, CUDA, external JavaScript library, or paid Hugging Face hardware is required. | |
| ### Hugging Face deployment | |
| This is a **Static Space**. Configure **Static → Blank → Public** and place the following three files directly in the Space root: | |
| ```text | |
| README.md | |
| index.html | |
| LICENSE | |
| ``` | |
| `README.md` contains valid Space metadata: `sdk: static`, `app_file: index.html`, permitted UI colors, and `short_description` below 60 characters. If the repository already contains an invalid README, **edit and commit that existing README first**, then upload the application. | |
| ## Validation and reproducibility | |
| - 54 Node.js core checks, covering lexical metrics, CSV parsing, data validation, deterministic resampling, bounded performance, and offline packaging. | |
| - 69 Chromium interface checks across desktop and mobile, including every module, CSV import, four export types, filters and zero JavaScript exceptions. | |
| - Source scripts and test evidence are provided separately in the project development archive, not in this publication ZIP. | |
| ## Scientific caveats | |
| Lexical overlap **does not measure factual correctness, semantic equivalence, hallucination rate, safety, fairness, reasoning quality, or conversational helpfulness**. Correct paraphrases can be penalized; incorrect text can achieve high overlap. Synthetic examples are for demonstrations only. Conduct human evaluation and use appropriate representative samples before making model deployment decisions. | |
| ## License | |
| MIT. Copyright (c) 2026 Rodrigo Pantoja Navajas. | |