File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ print_confusion_matrix(confmat)
2222@expect abs (res - 0.596 ) < 0.01
2323
2424# List specific errors
25- for (text, t) in zip (test, test_truth)
26- fv = fextractor (lid_iterating_tokenizer (text))
27- scores = score (model, fv)
28- bidx, b = best (scores)
29- if model. index_class[bidx] != t
30- @debug " ERROR: (ref: $t , hyp: $(model. index_class[bidx]) ) $text "
31- end
32- end
25+ # for (text, t) in zip(test, test_truth)
26+ # fv = fextractor(lid_iterating_tokenizer(text))
27+ # scores = score(model, fv)
28+ # bidx, b = best(scores)
29+ # if model.index_class[bidx] != t
30+ # @debug "ERROR: (ref: $t, hyp: $(model.index_class[bidx])) $text"
31+ # end
32+ # end
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ tokenize_file(fn) = tokenize(text(fn))
3737# -------------------------------------------------------------------------------------------------------------------------
3838getfile (" http://qwone.com/~jason/20Newsgroups/20news-bydate.tar.gz" , " 20news-bydate.tar.gz" , expected_size = 14_464_277 )
3939if ! isdir (" 20ng" )
40- run (` tar -xvzf 20news-bydate.tar.gz` )
40+ run (` tar -xzf 20news-bydate.tar.gz` )
4141 mkdir (" 20ng" )
4242 mv (" 20news-bydate-train" , " 20ng/train" )
4343 mv (" 20news-bydate-test" , " 20ng/test" )
You can’t perform that action at this time.
0 commit comments