File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 49
49
" \n " ,
50
50
" P_flatland = NgramCharModel(2, wordseq)\n " ,
51
51
" \n " ,
52
- " faust = open_data(\" faust.txt\" ).read()\n " ,
52
+ " faust = open_data(\" GE-text/ faust.txt\" ).read()\n " ,
53
53
" wordseq = words(faust)\n " ,
54
54
" \n " ,
55
55
" P_faust = NgramCharModel(2, wordseq)"
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def test_char_models():
123
123
124
124
def test_samples ():
125
125
story = open_data ("EN-text/flatland.txt" ).read ()
126
- story += open_data ("EN-text/ gutenberg.txt" ).read ()
126
+ story += open_data ("gutenberg.txt" ).read ()
127
127
wordseq = words (story )
128
128
P1 = UnigramWordModel (wordseq )
129
129
P2 = NgramWordModel (2 , wordseq )
@@ -164,7 +164,7 @@ def test_shift_decoding():
164
164
165
165
166
166
def test_permutation_decoder ():
167
- gutenberg = open_data ("EN-text/ gutenberg.txt" ).read ()
167
+ gutenberg = open_data ("gutenberg.txt" ).read ()
168
168
flatland = open_data ("EN-text/flatland.txt" ).read ()
169
169
170
170
pd = PermutationDecoder (canonicalize (gutenberg ))
You can’t perform that action at this time.
0 commit comments