Downloads · 30 days
0
dustalov/wikitext-wordlevel
wikitext-wordlevel is a machine learning model from dustalov. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for tokenizers. The card lists the license as cc-by-sa-3.0.
This is a simple word-level tokenizer created using the Tokenizers library. It was trained for educational purposes on the combined train, validation, and test splits of the WikiText-103 corpus.
Downloads · 30 days
0
Access
Public
Updated Jan 22, 2024
Repo size
—
Likes
1
Public
Click a slice to open those files.
.json1.8 MB · 100%
From the Hugging Face model README
This is a simple word-level tokenizer created using the Tokenizers library. It was trained for educational purposes on the combined train, validation, and test splits of the WikiText-103 corpus.
<s> (start of sequence), </s> (end of sequence), <unk> (unknown token)The tokenizer can be used as simple as follows.
tokenizer = Tokenizer.from_pretrained('dustalov/wikitext-wordlevel')
tokenizer.encode("I'll see you soon").ids # => [68, 14, 2746, 577, 184, 595]
tokenizer.encode("I'll see you soon").tokens # => ['i', "'", 'll', 'see', 'you', 'soon']
tokenizer.decode([68, 14, 2746, 577, 184, 595]) # => "i ' ll see you soon"