Enable trec_eval by code