Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.io.FileFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Stack;
Expand Down Expand Up @@ -95,6 +96,8 @@ public File read() throws IOException {
files = dir.listFiles();
}

Arrays.sort(files);

for (File file : files) {
if (file.isFile()) {
textFiles.push(file);
Expand Down Expand Up @@ -128,7 +131,5 @@ public void reset() {
*/
@Override
public void close() throws IOException {

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private static void crossEval(TrainingParameters params, String type, double exp
@Test
public void evalEnglishPersonNameFinder() throws IOException {
TrainingParameters params = ModelUtil.createDefaultTrainingParameters();
crossEval(params, "person", 0.8299903903167106d);
crossEval(params, "person", 0.8286204642039883d);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ private static void crossEval(TrainingParameters params, double expectedScore)

@Test
public void evalEnglishMaxentTagger() throws IOException {
crossEval(ModelUtil.createDefaultTrainingParameters(), 0.9699561275750962d);
crossEval(ModelUtil.createDefaultTrainingParameters(), 0.9698145168879707d);
}
}