public void parse() {
        d1 = new ArrayList<Paragraph>();
        d2 = new ArrayList<Paragraph>();
        ArrayList<Paragraph> d = d1;
        Paragraph p = new Paragraph();

        try {
            String line = reader.readLine();
            while (line != null) {

                if (line.isEmpty()) {
                    line = reader.readLine();
                    continue;
                }

                if (line.startsWith("e@0@p")) {
                    if (p.mida > 0) {
                        d.add(p);
                        p = new Paragraph();
                    }
                } else if (line.startsWith("e@0@l")) {
                    ++p.frases;
                } else if (line.startsWith("e@0@d")) {
                    d = d2;
                } else {
                    if (line.endsWith(" - Word")) {
                        line = line.replaceAll(" - Word", "");
                    }
                    p.paraules.add(line);
                    p.mida += line.length();
                }
                line = reader.readLine();
            }
        } catch (IOException ex) {

        }
    }