illinois-ml-nlp-users AT lists.siebelschool.illinois.edu
Subject: Support for users of CCG software closed 7-27-20
List archive
- From: "Sammons, Mark" <mssammon AT illinois.edu>
- To: Bahareh Sarrafzadeh <bsarrafz AT uwaterloo.ca>, "illinois-ml-nlp-users AT cs.uiuc.edu" <illinois-ml-nlp-users AT cs.uiuc.edu>
- Subject: Re: [Illinois-ml-nlp-users] Executing Wikifier from a Perl script
- Date: Sun, 16 Sep 2012 06:22:17 +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>
Hi, Bahar.
You don't sound very certain when you say you didn't see errors when running wikifier from the command line; can you dump the output you get from that to a file and send it? Please do the same for the output when you run the perl script. Ideally, echo the exact command you use in each case to the output file.
Regards,
Mark
You don't sound very certain when you say you didn't see errors when running wikifier from the command line; can you dump the output you get from that to a file and send it? Please do the same for the output when you run the perl script. Ideally, echo the exact command you use in each case to the output file.
Regards,
Mark
From: illinois-ml-nlp-users-bounces AT cs.uiuc.edu [illinois-ml-nlp-users-bounces AT cs.uiuc.edu] on behalf of Bahareh Sarrafzadeh [bsarrafz AT uwaterloo.ca]
Sent: Saturday, September 15, 2012 11:07 PM
To: illinois-ml-nlp-users AT cs.uiuc.edu
Subject: [Illinois-ml-nlp-users] Executing Wikifier from a Perl script
Sent: Saturday, September 15, 2012 11:07 PM
To: illinois-ml-nlp-users AT cs.uiuc.edu
Subject: [Illinois-ml-nlp-users] Executing Wikifier from a Perl script
Hi,
I managed to install and run Wikifier using command line and it went through well. Now I need to use it as a part of my Perl script.
I changed the paths in Config files to point to the correct folders and ran it as:
my $wikifier = `java -Xmx8g -classpath ./path-to/Wikifier.jar:./path-to-all-jar-files-in-lib-directory CommonSenseWikifier.ReferenceAssistant -annotateData path-to-input-corpus path-to-output-folder false path-to-Config/Demo_Config_Deployed`;
I receive a lot of exceptions as the one below and it tries to install some dictionaries. I don't recall it would happen when I ran the Wikifier before from the command line. It doesn't generate any output in the end.
12/09/15 23:24:40 INFO dictionary.Dictionary: Installing dictionary net.didion.jwnl.dictionary.FileBackedDictionary@1e2acc65
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -7557
at java.lang.String.substring(String.java:1949)
at CommonSenseWikifier.Caching.FakeCurator.getLabeling(FakeCurator.java:230)
at CommonSenseWikifier.Caching.FakeCurator.addNerChunkAndPosSpans(FakeCurator.java:82)
at CommonSenseWikifier.Caching.CachingCurator.getTextAnnotation(CachingCurator.java:62)
at CommonSenseWikifier.ReferenceAssistant.main(ReferenceAssistant.java:80)
Can you advise what could cause these exceptions or if I'm missing something for running Wikifier from a Perl script?
Thanks,
Bahar
I managed to install and run Wikifier using command line and it went through well. Now I need to use it as a part of my Perl script.
I changed the paths in Config files to point to the correct folders and ran it as:
my $wikifier = `java -Xmx8g -classpath ./path-to/Wikifier.jar:./path-to-all-jar-files-in-lib-directory CommonSenseWikifier.ReferenceAssistant -annotateData path-to-input-corpus path-to-output-folder false path-to-Config/Demo_Config_Deployed`;
I receive a lot of exceptions as the one below and it tries to install some dictionaries. I don't recall it would happen when I ran the Wikifier before from the command line. It doesn't generate any output in the end.
12/09/15 23:24:40 INFO dictionary.Dictionary: Installing dictionary net.didion.jwnl.dictionary.FileBackedDictionary@1e2acc65
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -7557
at java.lang.String.substring(String.java:1949)
at CommonSenseWikifier.Caching.FakeCurator.getLabeling(FakeCurator.java:230)
at CommonSenseWikifier.Caching.FakeCurator.addNerChunkAndPosSpans(FakeCurator.java:82)
at CommonSenseWikifier.Caching.CachingCurator.getTextAnnotation(CachingCurator.java:62)
at CommonSenseWikifier.ReferenceAssistant.main(ReferenceAssistant.java:80)
Can you advise what could cause these exceptions or if I'm missing something for running Wikifier from a Perl script?
Thanks,
Bahar
- [Illinois-ml-nlp-users] Executing Wikifier from a Perl script, Bahareh Sarrafzadeh, 09/15/2012
- Re: [Illinois-ml-nlp-users] Executing Wikifier from a Perl script, Sammons, Mark, 09/16/2012
Archive powered by MHonArc 2.6.16.