You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@opennlp.apache.org by Boris Galitsky <bg...@hotmail.com> on 2014/02/18 18:23:22 UTC
OpenNLP.Similarity at ApacheCon NA
Hello
Just wanted to share I will be presenting some applications of Similarity component to a number of NLP tasks mainly focused on open source content generation.
I also want to share the link to the demo (the code for this demo has been committed a few weeks ago) http://173.255.254.250/cgRequestForm.html
For a topic (2-3 keywords, like 'Albert Einstein') it writes a 40-60 page document in about 20 mins.
RegardsBoris
RE: OpenNLP.Similarity at ApacheCon NA
Posted by Darrell Berry <da...@significancesystems.com>.
Thanks
D
On 18 Feb 2014 18:56, "Boris Galitsky" <bg...@hotmail.com> 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
RE: OpenNLP.Similarity at ApacheCon NA
Posted by Boris Galitsky <bg...@hotmail.com>.
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
Re: OpenNLP.Similarity at ApacheCon NA
Posted by Darrell Berry <da...@significancesystems.com>.
thanks for sharing. Is the source publicly available?
On 18 Feb 2014 17:23, "Boris Galitsky" <bg...@hotmail.com> wrote:
> Hello
> Just wanted to share I will be presenting some applications of Similarity
> component to a number of NLP tasks mainly focused on open source content
> generation.
> I also want to share the link to the demo (the code for this demo has
> been committed a few weeks ago) http://173.255.254.250/cgRequestForm.html
> For a topic (2-3 keywords, like 'Albert Einstein') it writes a 40-60
> page document in about 20 mins.
> RegardsBoris