public void getStats() {
        Iterator sentenceIterator = sentenceMap.entrySet().iterator();
        Iterator wordsIterator;

        while(sentenceIterator.hasNext()) {
            Map.Entry sentencePair = (Map.Entry) sentenceIterator.next();

            Sentence sentence = (Sentence) sentencePair.getValue();
            wordsIterator = sentence.wordsMap.entrySet().iterator();
            while(wordsIterator.hasNext()) {
                Map.Entry wordsPair = (Map.Entry) wordsIterator.next();
                WordSW word = (WordSW) wordsPair.getValue();

                String bigram;
                if (word.dom == 0) continue;
                WordSW parent = (WordSW) sentence.wordsMap.get(word.dom);

                if(word.id < parent.id) {
                    String delimiter = "<";
                    bigram = word.feat + delimiter + parent.feat;
                } else {
                    String delimiter = ">";
                    bigram = parent.feat + delimiter + word.feat;
                }

                if (StatsManagement.stats.containsKey(bigram)) {
                    StatsManagement.stats.put(bigram, StatsManagement.stats.get(bigram) + 1);
                }
                else StatsManagement.stats.put(bigram, 1);
            }
        }
    }