I'm using Fluent library to fire a request to Natural Language Classifier service so as to 'train' the data.
Documentation says following parameters to be passed:
name=training_data; type=file; description=training data
name=training_meta_data; type=file; description=meta data to identify language etc
Below is my code sample:
File trainingCSVFile = new File("path to training file");
Request request=Request.Post(<bluemix service url>).
bodyFile(trainingCSVFile, ContentType.TEXT_PLAIN).
bodyString("{\"language\":\"en\",\"name\":\"PaymentDataClassifier\"}", ContentType.APPLICATION_JSON);
How ever am getting internal server error which plausibly due to my request format. Can any one help me how to pass the above mentioned parameters using Fluent library on priority?