Skip to Content.
Sympa Menu

illinois-ml-nlp-users - Re: [Illinois-ml-nlp-users] Illinois-SRL-3.0.5 service "Connection timed out"

illinois-ml-nlp-users AT lists.cs.illinois.edu

Subject: Support for users of CCG software closed 7-27-20

List archive

Re: [Illinois-ml-nlp-users] Illinois-SRL-3.0.5 service "Connection timed out"


Chronological Thread 
  • From: Meghana Kshirsagar <mkshirsa AT andrew.cmu.edu>
  • To: "Sammons, Mark" <mssammon AT illinois.edu>
  • Cc: "illinois-ml-nlp-users AT cs.uiuc.edu" <illinois-ml-nlp-users AT cs.uiuc.edu>
  • Subject: Re: [Illinois-ml-nlp-users] Illinois-SRL-3.0.5 service "Connection timed out"
  • Date: Fri, 28 Mar 2014 15:37:26 -0400
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/illinois-ml-nlp-users/>
  • List-id: Support for users of CCG software <illinois-ml-nlp-users.cs.uiuc.edu>


Dear Mark,
Thanks for your quick reply.

I managed to finally install curator and everything seems to be alright --
I've only installed the BASIC and SRL packages. The SRL server is running at
port 14810. Now, when I run the client (I'm using the CuratorClient.java code
from the curator distribution directory: dist/client-examples/java), I get
the following error (all output shown below):

$ ./runclient.sh localhost 14810 test.txt
java -cp
.:<path>/curator-1.0.7/dist/components/curator-interfaces.jar:<path>/curator-1.0.7/dist/lib/libthrift-0.8.0.jar:<path>/curator-1.0.7/dist/lib/logback-classic-0.9.17.jar:<path>/curator-1.0.7/dist/lib/logback-core-0.9.17.jar:<path>/curator-1.0.7/dist/lib/slf4j-api-1.5.8.jar
-Xmx512m CuratorClient localhost 14810 test.txt

## read in text: Mr. Smith saw the dog with a telescope.

We are going to be calling the Curator with the following text:
Mr. Smith saw the dog with a telescope.

We are going to inspect the Curator for the available annotations:

org.apache.thrift.TApplicationException: Invalid method name:
'describeAnnotations'
at
org.apache.thrift.TApplicationException.read(TApplicationException.java:108)
at
org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:71)
at
edu.illinois.cs.cogcomp.thrift.curator.Curator$Client.recv_describeAnnotations(Curator.java:183)
at
edu.illinois.cs.cogcomp.thrift.curator.Curator$Client.describeAnnotations(Curator.java:171)
at CuratorClient.main(CuratorClient.java:113)
Exception in thread "main" java.lang.NullPointerException
at CuratorClient.main(CuratorClient.java:119)


It seems there is some problem in the apache thrift method mapping. I tried
both the thrift libraries : libthrift-0.8.0.jar, libthrift.jar but no luck.
Note that I modified the provided client to perform only the SRL annotations.
I have attached the modified file, just in case you need it.

Thanks for your time.
best,
Meghana.

Attachment: CuratorClient.java
Description: Binary data




On Mar 28, 2014, at 1:12 AM, Sammons, Mark wrote:

> Hi, Meghana.
>
> You will need to install the Curator package. This satisfies the
> prerequisites of the SRL; the hostname and port for the srl.sh script will
> be the hostname and port of the Curator instance you start.
>
> Regards,
>
> Mark
>
> ________________________________________
> From:
> illinois-ml-nlp-users-bounces AT cs.uiuc.edu
>
> [illinois-ml-nlp-users-bounces AT cs.uiuc.edu]
> on behalf of Meghana Kshirsagar
> [mkshirsa AT andrew.cmu.edu]
> Sent: Thursday, March 27, 2014 9:35 PM
> To:
> illinois-ml-nlp-users AT cs.uiuc.edu
> Subject: [Illinois-ml-nlp-users] Illinois-SRL-3.0.5 service "Connection
> timed out"
>
> Dear CCGers,
> Thanks for your great packages!
>
> I was trying to use the illinois-SRL-3.0.5 package. Running the script
> srl.sh seems to require a remote SRL server's connection properties --
> hostname and port. I used the ones specified by default and also the ones
> at:
> https://cogcomp.cs.illinois.edu/cgi-secure/private/connect_to_server_monitor.pl?smPort=8001
> However, the connection times out.
>
> Here is the output from running the script:
>
> ./srl.sh -v --batch-whitespace --batch cv.test.sentences
> --batch-output-file cv.test.sentences.srl
> INFO: 22:29:33.130 [main] e.i.c.c.srl.main.SRLApplication - Finished
> reading configuration.
> INFO: 22:29:33.148 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Initializing
> SRL classifiers
> INFO: 22:29:33.168 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Finished
> initializing all classifiers
> INFO: 22:29:33.192 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Loading
> models into memory by running SRL on a dummy sentence...
> INFO: 22:29:33.192 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Dummy
> sentence: I do .
> INFO: 22:29:33.197 [main] e.i.c.c.e.utilities.WordNetManager - Loading
> wordnet properties as a classpath resource: true
> Mar 27, 2014 10:29:33 PM net.didion.jwnl.util.MessageLog doLog
> INFO: Installing dictionary
> net.didion.jwnl.dictionary.FileBackedDictionary@5902ab44
> INFO: 22:29:39.445 [main] e.i.c.c.s.f.VerbFeatureGenerator - Reading verb
> class dictionary. Looking for verbClass.txt in the classpath
> INFO: 22:29:39.468 [main] e.i.c.c.s.f.VerbFeatureGenerator - Loaded verb
> class dictionary. Test: classes for 'give' are [ 13.1]
> INFO: 22:29:42.183 [main] e.i.c.c.s.u.PropBankUtilities - Successfully
> loaded legal arguments. Legal arguments for abandon are [null, A0, A1, A2,
> AM-ADV, AM-CAU, AM-DIS, AM-LOC, AM-MNR, AM-MOD, AM-NEG, AM-PNC, AM-TMP,
> R-A0, R-A1, null]
> ## VerbSRLSystem.getSRLSystemIdentifier(): returning id:
> 'verb-IllinoisSRL-3.0.4'
> INFO: 22:29:56.566 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Obtained SRL
> for sentence: do:Predicate(A0:I, )
>
> INFO: 22:29:56.566 [main] e.i.cs.cogcomp.srl.main.SRLSystem - Finished
> loading models. Phew!
> INFO: 22:29:56.569 [main] e.i.c.c.srl.main.BatchSRLApplication - Creating
> curator client
> INFO: 22:29:56.573 [main] e.i.c.c.srl.main.BatchSRLApplication - Default
> parser = Charniak
> Error: java.net.ConnectException: Connection timed out
>
> Is there some fix to this? Can I not run it locally? I had problems
> installing the Curator package and so I decided to go with this stand-alone
> SRL component.
>
> Any help will be greatly appreciated.
> Thanks.
> Meghana.
>
>
> _______________________________________________
> illinois-ml-nlp-users mailing list
> illinois-ml-nlp-users AT cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/illinois-ml-nlp-users




Archive powered by MHonArc 2.6.16.

Top of Page