throws IOException {
Input input = new Input();
InputInput inputInput = new InputInput();
inputInput.setCsvInstance(Collections.<Object> singletonList(text));
input.setInput(inputInput);
Output output = prediction.trainedmodels().predict(MODEL_ID, input)
.execute();
System.out.println("Text: " + text);
System.out.println("Predicted language: " + output.getOutputLabel());
}