Re: [wn-perl] Is Net-QueryData installation complete or not?!

29 views
Skip to first unread message
Message has been deleted

Jason Rennie

unread,
Aug 5, 2011, 4:12:14 PM8/5/11
to wn-...@googlegroups.com
Hi V R,

The keys to using QueryData are:
  1. Make sure you have a complete installation of the wordnet databases
  2. Make sure QueryData.pl is in your "include" path
If the test ran successfully (you see appx. 50 lines of "ok"), #1 should be taken care of.  To take care of #2, put QueryData.pl in a standard perl include path or add a "-I" option as mentioned in the README ("Custom Directory").

Jason

On Fri, Aug 5, 2011 at 12:26 AM, V R <v.shin...@gmail.com> wrote:
Dear all
I'm a beginner!
 I use winxp and installed wordnet2.1 so  I installed
perl5(activeperl) , and then according to readme did these steps:
first  I downloaded  WordNet-QueryData-1.45.tar.gz then:

1) Unpack the WordNet QueryData distribution
 2) Create the directory C:\perl\site\lib\WordNet
 3) Copy QueryData.pm to C:\perl\site\lib\WordNet
 4) Run "test.pl" to test the installation

I didnt do "make installation" step! because I'm not sure it is
necessary or not, and ofcourse I dont know how should I do in this
step. Is my installation complete or not?

--
You received this message because you are subscribed to the Google Groups "wn-perl" group.
To post to this group, send email to wn-...@googlegroups.com.
To unsubscribe from this group, send email to wn-perl+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wn-perl?hl=en.




--
Jason Rennie
Research Scientist
ITA Software by Google
+1 617-446-3651


Message has been deleted

Jason Rennie

unread,
Aug 6, 2011, 11:22:09 AM8/6/11
to wn-...@googlegroups.com
It looks like you don't have "make" which is a common Linux utility for building code into executables.  Have you tried following the "Windows Installation" in the README?  Note that you'll need to substitute version numbers appropriately.  If the test command doesn't work, try running the following:

perl -IC:\perl\site\lib test.pl

The "-IC:\perl\site\lib" *should* add C:\perl\site\lib to the perl include path.  But, my experience is on Linux, not Windows, so this might not work and you might have to figure out how to add this directory to the perl include path.

Cheers,

Jason

On Sat, Aug 6, 2011 at 2:54 PM, V R <v.shin...@gmail.com> wrote:

thankyou so much, I think first step is working properly, becase when I run test.pl, I see about 55 lines of ok, but in second step when I type these commands (perl Makefile.plmake and make test) in comandline, I see this error (attached file),
again for reminding, I use windows xp and install activeperl5.12 and wordnet2.1 and working with WordNet-QueryData-1.45. I never use perl and these modules and I'm beginner
absoulutely !!
I set path in this way: system properties>advanced tab>Enviroment variables> New>
variable name: WNHOME
variable value: C:\ProgramFiles\WordNet\2.1  (path which is installed)
 
pleas help me.
thanks

Benjamin R. Haskell

unread,
Aug 6, 2011, 5:30:07 PM8/6/11
to wn-...@googlegroups.com
If you're a Perl beginner, the first thing you should do when you reach
the point of installing modules is to figure out the proper way to
install modules. Some tips:

1. Never just copy files. WordNet::QueryData is pretty straightforward,
but for the majority of modules, you shouldn't do this; you should get
used to doing it the "right" way. In a less friendly forum,
circumventing the standard installation steps may well prevent you from
getting any useful advice.

2. Use whatever package management system your Perl distribution wants
you to use:

i. Many operating systems have packages for modules the same way there's
a package for `perl` itself.

ii. For many other systems, the preferred method is to use the `cpan`
script. (E.g. `cpan install WordNet::QueryData`)

iii. ActivePerl uses its own format. You might want to start at:

http://win32.perl.org/wiki/index.php?title=Main_Page#Beginners

There appears not to be any 'ppm' package for WordNet::QueryData (I
think the tests rely on having an installed WordNet distribution).

Since there's no PPM, you should take the above link's advice and:

ppm install MinGW

That will set your system up with a usable `make` (via dmake), at which
point you can use the standard `cpan` script:

cpan install WordNet::QueryData

Despite several failed tests, this seemed to work fine for me.

--
Best,
Ben

On Sat, 6 Aug 2011, V R wrote:

> thankyou so much, I think first step is working properly, becase when I run
> test.pl, I see about 55 lines of ok, but in second step when I type these

> commands (*perl Makefile.pl*, *make* and *make test*) in comandline, I see


> this error (attached file),
> again for reminding, I use windows xp and install activeperl5.12 and
> wordnet2.1 and working with WordNet-QueryData-1.45. I never use perl and
> these modules and I'm beginner
> absoulutely !!
> I set path in this way: system properties>advanced tab>Enviroment variables>
> New>
> variable name: WNHOME
> variable value: C:\ProgramFiles\WordNet\2.1 (path which is installed)
>
> pleas help me.
> thanks
>

> On Sat, Aug 6, 2011 at 12:42 AM, Jason Rennie <jre...@gmail.com> wrote:
>
>> Hi V R,
>>
>> The keys to using QueryData are:
>>

>> 1. Make sure you have a complete installation of the wordnet databases
>> 2. Make sure QueryData.pl is in your "include" path


>>
>> If the test ran successfully (you see appx. 50 lines of "ok"), #1 should be
>> taken care of. To take care of #2, put QueryData.pl in a standard perl

>> include path or add a "-I" option as mentioned in the README<http://qwone.com/~jason/WordNet/WordNet-QueryData-1.49.readme> ("Custom

Message has been deleted

V R

unread,
Aug 8, 2011, 11:32:43 AM8/8/11
to wn-...@googlegroups.com
Is there any way to test that I did installation correct ??
tahnks in advance.

On Mon, Aug 8, 2011 at 8:36 AM, V R <v.shin...@gmail.com> wrote:
thakyou so much, they were usefull for me. I did these steps:
first install MinGw by writing "ppm install MinGw" in comandline, you see this in screenshot(33.jpg)
then see these folders (37.jpg) so typed some commands with "dmake" as you see in (35.jpg).
 so tell me please, Is my installation complete or not??????
 
Thanks alottttt

 

For more options, visit this group at
http://groups.google.com/group/wn-perl?hl=en.




--
Jason Rennie
Research Scientist
ITA Software by Google
+1 617-446-3651


 --
You received this message because you are subscribed to the Google Groups
"wn-perl" group.
To post to this group, send email to wn-...@googlegroups.com.
To unsubscribe from this group, send email to

For more options, visit this group at
http://groups.google.com/group/wn-perl?hl=en.




--
You received this message because you are subscribed to the Google Groups "wn-perl" group.
To post to this group, send email to wn-...@googlegroups.com.
To unsubscribe from this group, send email to wn-perl+unsubscribe@googlegroups.com.

Benjamin R. Haskell

unread,
Aug 8, 2011, 1:06:17 PM8/8/11
to wn-...@googlegroups.com
From your screenshots it's probably okay. You didn't include the output
of all tests (I had some failures below the point of your screenshot,
but it still installed fine). The entire portion in your `dmake`
screenshot could have been replaced with:

cpan install WordNet::QueryData

But, you should be fine. Pretty much the simplest test that WN::QD
loads properly and finds the WN dict directory is:

perl -MWordNet::QueryData -lwe "WordNet::QueryData->new"

If you don't get any errors from that, you should be okay.

--
Best,
Ben

> wn-perl+u...@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/wn-perl?hl=en.
>
>
>
>
> --
> Jason Rennie
> Research Scientist
> ITA Software by Google
> +1 617-446-3651
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "wn-perl" group.
> To post to this group, send email to wn-...@googlegroups.com.
> To unsubscribe from this group, send email to

> wn-perl+u...@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/wn-perl?hl=en.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "wn-perl" group.
> To post to this group, send email to wn-...@googlegroups.com.

> To unsubscribe from this group, send email to wn-perl+u...@googlegroups.com.


> For more options, visit this group at http://groups.google.com/group/wn-perl?hl=en.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "wn-perl" group.
> To post to this group, send email to wn-...@googlegroups.com.

> To unsubscribe from this group, send email to wn-perl+u...@googlegroups.com.

Message has been deleted

Benjamin R. Haskell

unread,
Aug 8, 2011, 4:04:44 PM8/8/11
to wn-...@googlegroups.com
Yes, it's installed.

On Tue, 9 Aug 2011, V R wrote:

> thankyou so much, I think every thing is going well.
> as you said I wrote this command and no error is occured. (1.jpg)
> and then I ran a perl program like this:
>  
> use WordNet::QueryData;
> my $wn = WordNet::QueryData->new;
>
> foreach $word (qw/boat#n house#n/) {
>
>         @senses = $wn->querySense($word);
>
>         foreach $wps (@senses) {
>                 @gloss = $wn -> querySense($wps, "glos");
>                 print "$wps : @gloss\n";
>         }
>  
> }
> and so these results (2.jpg)
>  
> I think the installation is completed, am I right?
>  
> Thankyou so much again.

V R

unread,
Aug 8, 2011, 4:12:37 PM8/8/11
to wn-...@googlegroups.com
thankyou so much, just with your helps I could do it successfully. again thanks.

Yes, it's installed.

          For more options, visit this group at
          http://groups.google.com/group/wn-perl?hl=en.




     --
     Jason Rennie
     Research Scientist
     ITA Software by Google
     +1 617-446-3651


      --
     You received this message because you are subscribed to the Google Groups
     "wn-perl" group.
     To post to this group, send email to wn-...@googlegroups.com.
     To unsubscribe from this group, send email to

     For more options, visit this group at
     http://groups.google.com/group/wn-perl?hl=en.




     --
     You received this message because you are subscribed to the Google Groups "wn-perl" group.
     To post to this group, send email to wn-...@googlegroups.com.
     To unsubscribe from this group, send email to wn-perl+unsubscribe@googlegroups.com.

     For more options, visit this group at http://groups.google.com/group/wn-perl?hl=en.



     --
     You received this message because you are subscribed to the Google Groups "wn-perl" group.
     To post to this group, send email to wn-...@googlegroups.com.
     To unsubscribe from this group, send email to wn-perl+unsubscribe@googlegroups.com.

     For more options, visit this group at http://groups.google.com/group/wn-perl?hl=en.



--
You received this message because you are subscribed to the Google Groups "wn-perl" group.
To post to this group, send email to wn-...@googlegroups.com.
To unsubscribe from this group, send email to wn-perl+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wn-perl?hl=en.


--
You received this message because you are subscribed to the Google Groups "wn-perl" group.
To post to this group, send email to wn-...@googlegroups.com.
To unsubscribe from this group, send email to wn-perl+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/wn-perl?hl=en.



--
You received this message because you are subscribed to the Google Groups "wn-perl" group.
To post to this group, send email to wn-...@googlegroups.com.
To unsubscribe from this group, send email to wn-perl+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages