return text.text().replaceAll("\\s+"," ").replaceAll("[\'\"]","");
}
public String annotate(Text text) throws AnnotationException {
if (!authenticated) {
throw new AuthenticationException("Client is not authenticated with Ontos. Please call authenticate(user, password) first.");
}
String url = "http://news.ontos.com/api/miner;jsessionid="+this.authToken+"?query="+
URLEncoder.encode(
"{" +
"\"get\":\"process\"," +