llm-from-scratch / testing.sync.py
ibrahimmkhalid's picture
add shakespeare text and rename main script to testing script
09b0ea4
raw
history blame
392 Bytes
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.3.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %%
with open("shakespeare.txt") as f:
text = f.read()
print(text[:1000])
# %%
chars = sorted(set(text))
print(chars)