---------- Forwarded message ----------
Date: Mon, 28 Nov 2005 20:35:33 -0500 (EST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Ted Pedersen <[EMAIL PROTECTED]>
Subject: Re: Question about WordNet::Similarity

Hi, Ted and Sid,

Thanks for your replies.

>> #1. Speed: when I make an even simple program running on my machine
>> (just
>> make a lin object and get a value of the similarity), its running time
>> is
>> too long while running time on the web interface is relatviely short.
>
> The WordNet::Similarity package needs to load the WordNet data and some
> data files into memory before it can process a query. This is an initial
> startup time that occurs *once* when you create a WordNet::Similarity
> object (about 15 seconds on my machine). But once this data is loaded
> into memory, the same WordNet::Similarity object can respond much faster
> to multiple queries (without having to reload the data).
>
> In the case of the web interface, the server has already created the
> object, loaded the data files into memory and is waiting for input from
> the user. Which is why you don't see that startup time with the web
> interface.

As you say, the time to make an object needs a long time, so my program
gets two data files and tries to process multiple queries.
The problem is that once an uninitialized value is returned for the word
that is not on Wordnet, the following results for whatever become
uninitialized value if a new object is not created, so at the worst case,
I need to create an object as the same number of comparisons.

For example,

#1. Simialarity (cost#n#2, price#n#2) = 1
#2. Simialarity (Routing, Path) = uninitialized value error
       #because Routing is not on WordNet

If I make comparisions in order of #1, #2 and #1, then the results are
"1", "uninitialized value" and "uninitialized value",
so my program creates a new object whenever producing "uninitialized
value", which makes my program slower.

Is it my mistake in package installation or what you are supposed to do in
the design?

Best,
  Hyunyoung


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wn-similarity/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to