Package org.apache.stanbol.enhancer.nlp.json

Examples of org.apache.stanbol.enhancer.nlp.json.AnalyzedTextSerializer


        at = atFactory.createAnalysedText(textBlob.getValue());
  }
 
  protected String getSerializedString() throws IOException {
    ByteArrayOutputStream bout = new ByteArrayOutputStream();
        AnalyzedTextSerializer serializer = AnalyzedTextSerializer.getDefaultInstance();
        serializer.serialize(at, bout, null);
        byte[] data = bout.toByteArray();
       
        return new String(data,Charset.forName("UTF-8"));
  }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.enhancer.nlp.json.AnalyzedTextSerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.