Dear Linas,

Thanks for developing WordNet::SenseKey. It is ecactly the program I was looking for. Thanks Siddharth  and Ted and for pointing to SenseKey.

However the output from WordNet::SenseKey seems to be bit different from the corresponding value shown by the  WordNet web interface. For example for the sense number "distinct#a#1", the WordNet::SenseKey shows sensekey as "distinct%5:00:00:different:00" where as the WordNet web interface shows sense key as "distinct%3:00:00:different:00". I apologise if I am missing something here.


Following are more examples.


Output from WordNet::SenseKey.pm
****distinct#a#1 [distinct%5:00:00:different:00]
 ****distinct#a#2 [distinct%3:00:00::]
 ****distinct#a#3 [distinct%5:00:00:separate:00]
 ****distinct#a#4 [distinct%5:00:00:definite:00]
 ****distinct#a#5 [distinct%5:00:00:clear:00]

Output from WordNet web interface http://wordnetweb.princeton.edu/perl/webwn
distinct#1 (distinct%3:00:00:different:00),
distinct#2 (distinct%3:00:00::)
distinct#3 (distinct%3:00:00:separate:00) 
distinct#4 (distinct%3:00:00:definite:00)
distinct#5 (distinct%3:00:00:clear:00),

Regards, 
Ambikesh Jayal. 
School of IS, Computing & Maths,
Brunel University,
Uxbridge, UB8 3PH,
United Kingdom.
Email: ambikesh.jayal@brunel.ac.uk

--- On Mon, 5/4/10, Siddharth Patwardhan <sidd@cs.utah.edu> wrote:

From: Siddharth Patwardhan <sidd@cs.utah.edu>
Subject: Re: [Senserelate-developers] WordNet::SenseRelate
To: "Ted Pedersen" <duluthted@gmail.com>
Cc: satanjeev@gmail.com, "Ambikesh jayal" <jayal_1999@yahoo.com>, senserelate-developers@lists.sourceforge.net, "senserelate-users" <senserelate-users@lists.sourceforge.net>
Date: Monday, 5 April, 2010, 19:14

I remember a little while back Linas Vepsats wrote something that could
deal with sensekeys. He's released it on CPAN:

http://search.cpan.org/dist/WordNet-SenseKey/

-- Sid.

On Mon, 2010-04-05 at 17:34 -0500, Ted Pedersen wrote:
> Hi Bano,
>
> Very impressive memory. :) That had totally slipped my mind, but
> indeed it is here (on my very own web page :)
>
> http://www.d.umn.edu/~tpederse/wordnet.html
>
> Here's the short description from that page...
>
> Map from QueryData to WordNet sense-keys
>
> QueryData identifies WordNet senses using a word#pos#sense format.
> WordNet identifies senses using sense-keys (aka mnemonics). This
> program creates a mapping between the QueryData format and the WordNet
> sense-key format. (This tool is not specific to Senseval-2 data - it
> is generally useful if are using QueryData to access WordNet.)
>
> So, this sounds very much like what Ambikesh may want to use. Thanks
> for pointing this out, I absolutely missed this!
>
> Thanks!
> Ted
>
> On Mon, Apr 5, 2010 at 5:26 PM, Satanjeev Banerjee <satanjeev@gmail.com> wrote:
> > Hi Ted,
> >
> > I'm pretty rusty with Senserelate, but I vaguely recall having written a
> > program (way back when!) that at least created a map between the sensekeys
> > and the word#pos#sense format (but maybe we are talking of something else
> > here?) I googled around for it, and found this link:
> > http://www.d.umn.edu/~tpederse/Code/Readme-qd2wn.txt. Does this program
> > still exist? As far as I remember, it depended on the minutiae of the
> > various file formats in WordNet, so I wouldn't be surprised if those formats
> > have changed now rendering the program useless :-).
> >
> > -Bano
> >
> > On Mon, Apr 5, 2010 at 6:11 PM, Ted Pedersen <duluthted@gmail.com> wrote:
> >>
> >> Hi Ambikesh,
> >>
> >> See my comments inline...
> >>
> >> On Mon, Apr 5, 2010 at 4:43 PM, Ambikesh jayal <jayal_1999@yahoo.com>
> >> wrote:
> >> >
> >> > Hi,
> >> > The WordNet::SenseRelate returns the value in the format "infer#v#5". To
> >> > run my experiments I need to compare it with a value in the format
> >> > "infer%2:31:01::".
> >> > 1. Is there a function that takes sense key as input and returns the
> >> > corresponding sense number? For example inputting "infer%2:31:01" should
> >> > return "infer#v#5".
> >>
> >> I am not sure, but if there is it would be in WordNet::QueryData.
> >>
> >> http://search.cpan.org/dist/WordNet-QueryData/
> >>
> >> While we use WordNet::QueryData, we don't include all of its
> >> functionality, so this might be something that they provide but we
> >> don't use. There is mailing list devoted to QueryData that might be
> >> the best place to ask this - it's a google group named wn-perl
> >> (details can be found at the site above).
> >>
> >> >
> >> > 2. Can WordNet::SenseRelate  be configured to return the results in the
> >> > format  "infer%2:31:01::" ?
> >>
> >> No, we only support the wps format (word#part-of-speech#sense, as in
> >> dog#n#2).
> >>
> >> > Also can WordNet::SenseRelate  be configured for list of stopwords,
> >> > special characters?
> >>
> >> Yes. See the stoplist option described here
> >>
> >>
> >> http://search.cpan.org/dist/WordNet-SenseRelate-AllWords/lib/WordNet/SenseRelate/AllWords.pm
> >>
> >> and here
> >>
> >> http://search.cpan.org/dist/WordNet-SenseRelate-AllWords/utils/wsd.pl
> >>
> >> and find a sample stoplist here :
> >>
> >>
> >> http://cpansearch.perl.org/src/TPEDERSE/WordNet-SenseRelate-AllWords-0.19/samples/default-stoplist-raw.txt
> >>
> >> ;)
> >>
> >> Good luck,
> >> Ted
> >>
> >> > Thanks,
> >> > Regards,
> >> > Ambikesh Jayal.
> >> > School of IS, Computing & Maths,
> >> > Brunel University,
> >> > Uxbridge, UB8 3PH,
> >> > United Kingdom.
> >> > Email: ambikesh.jayal@brunel.ac.uk
> >> > Webpage: http://people.brunel.ac.uk/~cspgaaj
> >> >
> >>
> >>
> >> --
> >> Ted Pedersen
> >> http://www.d.umn.edu/~tpederse
> >>
> >>
> >> ------------------------------------------------------------------------------
> >> Download Intel® Parallel Studio Eval
> >> Try the new software tools for yourself. Speed compiling, find bugs
> >> proactively, and fine-tune applications for parallel performance.
> >> See why Intel Parallel Studio got high marks during beta.
> >> http://p.sf.net/sfu/intel-sw-dev
> >> _______________________________________________
> >> senserelate-developers mailing list
> >> senserelate-developers@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/senserelate-developers
> >
> >
>
>
>
> --
> Ted Pedersen
> http://www.d.umn.edu/~tpederse
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> senserelate-developers mailing list
> senserelate-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/senserelate-developers