Download tests/text_preprocessing.test.js from anmol-unitmole/05-grammar-error-correction-t5-encoder-decoder: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/anmol-unitmole/05-grammar-error-correction-t5-encoder-decoder/resolve/main/tests/text_preprocessing.test.js
- Command line
-
hf download hf://spaces/anmol-unitmole/05-grammar-error-correction-t5-encoder-decoder/tests/text_preprocessing.test.js
-
curl -L -o text_preprocessing.test.js https://huggingface.co/spaces/anmol-unitmole/05-grammar-error-correction-t5-encoder-decoder/resolve/main/tests/text_preprocessing.test.js
254 Bytes
| import test from "node:test"; | |
| import assert from "node:assert/strict"; | |
| import { normalizeText } from "../text_preprocessing.js"; | |
| test("preprocessing normalizes spacing", () => { | |
| assert.equal(normalizeText(" She go\tthere. "), "She go there."); | |
| }); | |