@Test
public void testFileUtil() {

    List<String> files = FileUtil.getFiles(new File("/home/verbs/student/shumin/corpora/ontonotes-release-4.0/data/english/annotations/nw"), ".+\\.parse\\z", true);
    System.out.println(files.get(50));
    files = FileUtil.getFiles(new File("/home/verbs/student/shumin/corpora/ontonotes-release-4.0/data/english/annotations/nw"), ".+\\.parse\\z");
    System.out.println(files.get(50));
    
    files = FileUtil.getFiles(new File("/home/verbs/student/shumin/corpora/ontonotes-release-4.0/data/english/annotations/nw/p2.5_c2e/00/p2.5_c2e_0002.parse"), ".+\\.parse\\z");
    System.out.println(files.get(0));
    files = FileUtil.getFiles(new File("/home/verbs/student/shumin/corpora/ontonotes-release-4.0/data/english/annotations/nw/p2.5_c2e/00/p2.5_c2e_0002.parse"), ".+\\.parse\\z", true);
    System.out.println(files.get(0));
}