Thanks D On 18 Feb 2014 18:56, "Boris Galitsky" <[email protected]> wrote:
> Yes, please take a look at > http://svn.apache.org/viewvc/opennlp/sandbox/opennlp-similarity/ > A good example on how to use it would be athttp:// > svn.apache.org/viewvc/opennlp/sandbox/opennlp-similarity/src/main/java/opennlp/tools/similarity/apps/ContentGeneratorRunner.java?revision=1555944&view=markup > > > > > > > > > List<HitBase> hits = null; > hits = f.generateContentAbout(....); // string for a topic > String generatedContent = HitBase.toResultantString(hits); > This way you generate plain text. > To build a DOCX file you will need some code I am going to contribute > soon. > Please let me know if you need more details > RegardsBoris
