diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-06-27 00:58:05 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-27 01:03:41 +0200 |
| commit | af55803d0dff9eb692c760c8d486e736c945061d (patch) | |
| tree | 0875a1112bf98304e445e0544c4309670d6f4769 /tests/check_wordpiece_parity.py | |
| parent | 0f861b7f3098750ddee4f6570f3be228d1da5320 (diff) | |
| download | ffwd-af55803d0dff9eb692c760c8d486e736c945061d.tar.gz ffwd-af55803d0dff9eb692c760c8d486e736c945061d.zip | |
chore: clean up comment formatting and wording
Diffstat (limited to 'tests/check_wordpiece_parity.py')
| -rwxr-xr-x | tests/check_wordpiece_parity.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/check_wordpiece_parity.py b/tests/check_wordpiece_parity.py index b03da7e..8f09394 100755 --- a/tests/check_wordpiece_parity.py +++ b/tests/check_wordpiece_parity.py @@ -1,11 +1,11 @@ #!/usr/bin/env python3 -"""Check the C WordPiece tokenizer against stored reference vectors. +"""Check the WordPiece tokenizer against stored reference vectors. The reference ids live in tests/test-vectors/wordpiece/expected.json, generated -from the slow BertTokenizer by devtools/gen_test_vectors.py. This builds the C -WordPiece driver (tests/wordpiece_dump), runs it against the checked-in -vocab.txt + tokenizer_config.json, and compares the ids exactly. It imports no -transformers and downloads no model, so it is hermetic and fast. +from the slow BertTokenizer by devtools/gen_test_vectors.py. + +This builds the C WordPiece driver (tests/wordpiece_dump), runs it against the checked-in +vocab.txt + tokenizer_config.json, and compares the ids exactly. tests/check_wordpiece_parity.py tests/check_wordpiece_parity.py --cc clang |
