Parser.getNGrams working but with minor errrors