File size: 1,391 Bytes
cc6e70e 20e1dbf cc6e70e 20e1dbf cc6e70e 0e534a6 cc6e70e 54412a8 cc6e70e 20e1dbf cc6e70e 20e1dbf cc6e70e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | ---
pretty_name: lex-large
task_categories:
- token-classification
tags:
- source-code
- syntax-highlighting
---
# lex-large
Prepared numeric training cache for the 101,107-byte, 185-grammar neural lexer.
It contains token features and nine-class syntax labels, not the original source
text. File-level hashing fixes the train/validation/test split before upload.
## Contents
- `train.npz`, `val.npz`, `test.npz`: ragged token windows and split indices
- `meta.json`: counts, label distribution, and per-language coverage
- `language_manifest.json`: pinned Highlight.js grammar mapping
- `sources.json`: GitHub repository provenance used by corpus preparation
- `gpu_lexer_import.json`: hashes and counts for the imported gpu-lexer
train/mining shards; the verification split is excluded
- `checksums.json`: byte sizes and SHA-256 checksums
Total labelled tokens: 136,430,550
Languages covered: 185/185
Sequence length: 512
## Download
```bash
cd /path/to/lexer/train_large
hf download anudit/lex-large-stack-corpus --repo-type dataset --local-dir ./corpus/dataset_v2
.venv/bin/python test_setup.py
```
The cache is consumed directly by `train_teacher.py`, `train.py`, and
`eval_coverage.py`. See `train_large/note.txt` in the lexer repository for the
complete commands.
## Integrity
This revision contains 7 payload files. Verify them against
`checksums.json` after download.
|