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 nltk | |
all_words = nltk.corpus.words.words() | |
print len(all_words), "total words loaded" | |
jumbled_letters = "andrewtremblay" | |
letter_distribution = nltk.FreqDist(jumbled_letters) | |
matching_wordlist = [w.lower() for w in all_words if nltk.FreqDist(w) <= letter_distribution] |
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 nltk | |
all_words = nltk.corpus.words.words() | |
print len(all_words), "total words loaded" |
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 nltk | |
all_words = nltk.corpus.words.words() | |
jumbled_letters = "andrewtremblay" | |
anagram_results = [] | |
len_full_phrase = len(jumbled_letters) | |
letter_distribution = nltk.FreqDist(jumbled_letters) | |
trimmed_lowercase_wordlist = [w.lower() for w in all_words if len(w) <= len_full_phrase] |
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
// Assumes consistent file names accross all image sequences (mine are zero-indexed and padded to five digits) | |
// mainCharacter.atlas | |
// - idleLoop_00000.png | |
// - idleLoop_00001.png | |
// - ... | |
// - walkLoop_00000.png | |
// - walkLoop_00001.png | |
// - ... | |
NewerOlder