Experiment API for natural language processing