Skip to Content.
Sympa Menu

illinois-ml-nlp-users - Re: [Illinois-ml-nlp-users] Running CuratorDemo.java

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] Running CuratorDemo.java


Chronological Thread 
  • From: "Sammons, Mark" <mssammon AT illinois.edu>
  • To: "f.fancellu" <astromantic3 AT gmail.com>
  • Cc: "illinois-ml-nlp-users AT cs.uiuc.edu" <illinois-ml-nlp-users AT cs.uiuc.edu>
  • Subject: Re: [Illinois-ml-nlp-users] Running CuratorDemo.java
  • Date: Tue, 2 Jul 2013 17:39:48 +0000
  • Accept-language: en-US
  • 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>

'PATH' is a (Linux) environment variable that is used by the shell to find executables.  You have installed thrift, and this is not in one of the default locations that the system looks in.

In the INSTALL file, you should see the following entry:


3.3.2 Set environment variables
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   The file setEnvVars.sh in the main Curator directory lists all the
   environment variables needed. Modify this file based on your
   system's configuration (i.e. where you installed Thrift, Boost, and
   Curator).

Take a look at setEnvVars.sh and change the THRIFT_ROOT value to the path to the thrift installation.
Make sure the other variables are also set correctly.

When you have done this, and you run the command

$   source setEnvVars.sh

you can check that thrift is on the path by running the command

$  which thrift

-- it should return the path to your thrift executable.




From: f.fancellu [astromantic3 AT gmail.com]
Sent: Tuesday, July 02, 2013 12:24 PM
To: Sammons, Mark
Subject: Re: [Illinois-ml-nlp-users] Running CuratorDemo.java

Thank you for the answer.
But now I have the following problem:

When I run $ant dist I get the following error

I have followed all the steps as indicated in the INSTALL instructions so I don't know what is going wrong here

BUILD FAILED
/mnt/sif0/federico/curator/build.xml:143: The following error occurred while executing this line:
/mnt/sif0/federico/curator/curator-interfaces/build.xml:39: Execute failed: java.io.IOException: Cannot run program "thrift" (in directory "/mnt/sif0/federico/curator/curator-interfaces"): java.io.IOException: error=2, No such file or directory
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:488)
    at java.lang.Runtime.exec(Runtime.java:610)
    at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:41)
    at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
    at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
    at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:628)
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
    at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:435)
    at org.apache.tools.ant.Target.performTasks(Target.java:456)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
    at org.apache.tools.ant.Main.runBuild(Main.java:851)
    at org.apache.tools.ant.Main.startAnt(Main.java:235)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
    at java.lang.ProcessImpl.start(ProcessImpl.java:81)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:470)
    ... 35 more

Total time: 0 seconds



2013/6/25 Sammons, Mark <mssammon AT illinois.edu>
Hi.

Take a look at the INSTALL file, which should walk you through all the steps you need to run.  I'll look at the online documentation -- it's quite possible that it has not yet been updated to conform to the documentation in the install file.

Let me know if you have more questions.

Mark


From: f.fancellu [astromantic3 AT gmail.com]
Sent: Tuesday, June 25, 2013 9:41 AM
To: Sammons, Mark
Subject: Re: [Illinois-ml-nlp-users] Running CuratorDemo.java

No I didn't. Can you be more precise on this point?
What I did is to download curator and all dependencies that now are stored in the 'lib' folder. Is there something else I need to download?

I was trying the demo because I thought I could easily start from there and I also assumed that by just calling CuratorDemo.java and eventually modifying some bits of it, I could get to my annotated text.

Moreover I was wondering if there a more direct way to get my text annotated for semantic roles. Namely, is there a script that called from the command line, along with the input text can output an annoted text? (pretty much how the Stanford Parser works?)

Apparently there is some steps I am missing. What is that mongodb process you are talking about? And is it there a more detailed documentation about how to run the Curator? I am actually quite lost with the online documentation.

Thank you very much!

Federico.


2013/6/25 Sammons, Mark <mssammon AT illinois.edu>
Hi, F.

First, a sanity check: did you start a local Curator instance and mongodb process, together with the components you want to process with? Assuming this is the case, do the log files show they are running properly?

Regards,

Mark


From: illinois-ml-nlp-users-bounces AT cs.uiuc.edu [illinois-ml-nlp-users-bounces AT cs.uiuc.edu] on behalf of f.fancellu [astromantic3 AT gmail.com]
Sent: Tuesday, June 25, 2013 8:58 AM
To: illinois-ml-nlp-users AT cs.uiuc.edu
Subject: [Illinois-ml-nlp-users] Running CuratorDemo.java

Hi,
I am trying to run CuratorDemo.java in order to label my text with semantic role labels.
I am starting by running the script with no changes to see how it works.
I am using the following commands (from Linux terminal):

javac -classpath 'path/to/dir/lib' CuratorDemo.java

According to what I have understood, the output should be printed out on the terminal.
What happens however it is that nothing is returned.
Since no errors are flagged I was wondering what was going on.
Furthermore how should I set correctly the hostname and the port? Shall I leave the ones in the demo? If not, where can I look for the correct ones? At last, might the hostname and the port responsible for the demo not returning anything?

Cheers!
F.







Archive powered by MHonArc 2.6.16.

Top of Page