Created
May 30, 2017 11:06
-
-
Save ronrest/a3a366aa1910e94399acf01af90383c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import string | |
id2char = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" | |
char2id = {id2char[id]: id for id in range(len(id2char))} | |
n_vocab = len(id2char) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment