getting rid of Mallet dependency