@Produces(MediaType.APPLICATION_JSON)
public Response postJSON(
@DefaultValue(SpotlightConfiguration.DEFAULT_TEXT) @FormParam("text") String text,
@Context HttpServletRequest request
) {
TopicalClassifier classifier = TopicalServer.getClassifier();
Text textObj = new Text(text);
Tuple2<Topic,Object>[] result = classifier.getPredictions(textObj);
return ok(TopicalOutputSerializer.topicTagsAsJson(textObj, result).toString());
}