CoolFace
Datasetpublic

karpathy/tiny_shakespeare

40,000 lines of Shakespeare from a variety of Shakespeare's plays. Featured in Andrej Karpathy's blog post 'The Unreasonable Effectiveness of Recurrent Neural Networks': http://karpathy.github.io/2015/05/21/rnn-effectiveness/. To use for e.g. character modelling: ``` d = datasets.load_dataset(name='tiny_shakespeare')['train'] d = d.map(lambda x: datasets.Value('strings').unicode_split(x['text'], 'UTF-8')) # train split includes vocabulary for other splits vocabulary = sorted(set(next(iter(d)).numpy())) d = d.map(lambda x: {'cur_char': x[:-1], 'next_char': x[1:]}) d = d.unbatch() seq_len = 100 batch_size = 2 d = d.batch(seq_len) d = d.batch(batch_size) ```

sourceHugging Faceupdated 3y agoView on Hugging Face
92likes3.9kdownloads
11 commits on main
c7a7ff33y ago

Delete legacy JSON metadata (#3)

albertvillanova
89e866d3y ago

Convert dataset sizes from base 2 to base 10 in the dataset card (#1)

albertvillanova
181a2934y ago

add dataset_info in dataset metadata

lhoestq
a9b23204y ago

remove dummmy data

mariosasko
eadd80f4y ago

Remove a copy-paste sentence in dataset cards (#4281)

albertvillanova
721b8cf5y ago

Update files from the datasets library (from 1.18.0)

system
d72767e5y ago

Update files from the datasets library (from 1.7.0)

system
97b4e915y ago

Update files from the datasets library (from 1.6.0)

system
859cdfa5y ago

Update files from the datasets library (from 1.4.0)

system
5c03c8b5y ago

Update files from the datasets library (from 1.3.0)

system
695b1145y ago

Update files from the datasets library (from 1.0.0)

system