I used Zhang Le’s tool. Note that it is a rather obscure thing, not an industry standard like say, the huge Weka and Mallet packages. It made very easy the tasks you ask for. When I had a train and test data featurized,
maxent -m gender.model train.data
built the model and
maxent -p -m gender.model test.data
told me its accuracy on the test data.
I used Zhang Le’s tool. Note that it is a rather obscure thing, not an industry standard like say, the huge Weka and Mallet packages. It made very easy the tasks you ask for. When I had a train and test data featurized,
built the model and
told me its accuracy on the test data.