Help for Beginner

462 views
Skip to first unread message

kent...@gmail.com

unread,
Apr 25, 2016, 2:43:18 PM4/25/16
to simplenlg
Sorry about this question. Kinda embarassing. I just need a few hints, maybe a few bits of code.

I've been fiddling in Python for quite some time, and my java/eclipse skills seem to have disappeared.

simplenlg looks very good. I'd like to try, but I've been fighting java/eclipse for a day now.
For java, I can get abit by "HelloWorld", but not so much.

I have tried to follow the "simplenlg getting started" notes, but these do not provide enough detail (or hints) for me. Very sorry.
Could you please provide some more details about how to install & use this package ?
Maybe I missed some tutorial links ?

I start here:  https://github.com/simplenlg/simplenlg/wiki/Section-0-%E2%80%93-SimpleNLG-Tutorial

*Download the simplenlg zip file from the Download tab. (DONE)
*Extract then add simplenlg’s jar file to your classpath. (DONE I go to Project->Java Build Path->Properties, and add the simplenlg jar file in the build/jar
 directory)
*Create a new Java class which has the main method in it. In this example, let’s call the new class TestMain. (DONE)

So I have a basically empty TestMain, plus some warnings beside:
 import simplenlg.framework.*;
 import simplenlg.lexicon.*;
 import simplenlg.realiser.english.*;
 import simplenlg.phrasespec.*;
 import simplenlg.features.*;

The warnings say "the import xxxx is never used" - ok - I don't have any code to call it.

Meanwhile, the console seems to say that a server has been started on port 50007:

[unzip] Expanding: C:\Users\kp1\Desktop\simplenlg-master\src\test\resources\NIHLexicon\lexAccess2011.data.zip into C:\Users\kp1\Desktop\simplenlg-master\src\test\resources\NIHLexicon
[echo] **** Starting the SimpleNLG Simple Server
[echo] **** Waiting for clients. Type 'exit' and press enter to quit.
[java] Port Number used by Server is: 50007
[java] Server is using the following lexicon: ./src/test/resources/NIHLexicon/lexAccess2011.data

So I assume I need to enter something in my "TestMain" to actually try something.

There is a Standalone Example in src/test/java/simplenlg/syntax/english, but it seems I am running a server, so I don't think I can use that example.

What do I enter ? Is there a simple example I can try ? Right now my TestMain is empty, which doesn't seem so good.

Something simple please.

Thanks !

Kent





kent...@gmail.com

unread,
May 1, 2016, 1:25:51 PM5/1/16
to simplenlg
I found some examples.

This implementation looks interesting. There does seem to be a gap in some of the overlying algorithms which create a grammatical sentence from an abstracted representation. I suspect that is on-purpose. Otherwise, it wouldn't be "simple" ! 

Thank you for your efforts.

madhura phadke

unread,
Apr 17, 2017, 7:19:16 AM4/17/17
to simplenlg, kent...@gmail.com
can u plz share the examples
Reply all
Reply to author
Forward
0 new messages