Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. make k argument available to change for tapkee/words demo. 2.littl…
…e fixes
- Loading branch information
Zhengyang Liu
committed
Aug 5, 2013
1 parent
c155c7f
commit 9509e80
Showing
8 changed files
with
152 additions
and
65 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
from Ai import Ai | ||
ai = Ai() | ||
ai.load_classifier() | ||
|
||
filename = "data/tapkee/words.dat" | ||
words = [] | ||
with open(filename) as f: | ||
words.extend([str.rstrip() for str in f.readlines()]) | ||
|
||
filename = "data/tapkee/mml.txt" | ||
strings = [] | ||
with open(filename) as f: | ||
strings = [s.rstrip() for s in f.readlines()] |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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