public void createBaseLine() {
        File dir = new File("corpus/Plaintext/");
        String[] directories = dir.list();
        int counter = 0;
        for (String d : directories) {
            File directory = new File(dir.getPath() + "/" + d);
            if (directory.isFile()) {
                continue;
            }
            File[] files = directory.listFiles();    // Reading directory contents
            for (File file : files) {
                try {
                    String name = file.getName();
                    String text = IOUtil.ReadFile(directory.getPath() + "/" + name);
                    String[] sentences = text.split("\n");
                    String s = IOUtil.ReadFile("corpus/Summary/" + d + "/" + name);
                    int nWords = s.split("\\s+").length;        // lấy số từ theo văn bản tóm tắt tay
                    System.out.println(nWords);
                    ArrayList<Integer> list = new ArrayList<>();
                    for (int i = 0; i < sentences.length; i++) {
                        list.add(i);
                    }
                    Collections.shuffle(list);
                    int[] arrIndices = new int[sentences.length];
                    for (int i = 0; i < list.size(); i++) {
                        arrIndices[i] = list.get(i);
                    }
                    String str = "";
//                    int maxWords = IOUtil.ReadFile(file.getPath()).split("\\s+").length;
//                    maxWords = (maxWords < 120) ? maxWords : 120;
                    int wordCounter = 0, i = 0;
                    while (wordCounter < nWords * 0.8) {
                        String sentence = sentences[arrIndices[i++]];
                        wordCounter += sentence.split("\\s+").length + 2;
                        str += sentence + "\n";
                    }
                    System.out.println(wordCounter + "\n");
                    IOUtil.WriteToFile("corpus/BaselineSummary/" + d + "/" + name, str);
                    counter++;
                } catch (Exception ex) {
                    System.out.println("Failure on file " + file.getPath() + "!\n\n");
                }
            }
        }
        System.out.println("\n" + counter + " văn bản đã được tạo");
    }