Loading ...
Sorry, an error occurred while loading the content.
 

Accessing Lexnames from QueryData

Expand Messages
  • iveychiu
    Hi, How would I access the lexnames (i.e. ) from QueryData? I am using the 1.31 release. I assumed this would be similar to the offset function
    Message 1 of 5 , Aug 19, 2004
      Hi,

      How would I access the lexnames (i.e. <noun.animal>) from QueryData? I am using the
      1.31 release.

      I assumed this would be similar to the "offset" function as the wn command for offset is -o
      and the wn command for lexname is -a. However, "lexname" isn't listed as an "other
      function" nor does it work when I tried it.

      Thanks very much.

      Ivey
    • Jason Rennie
      ... As far as I know, QueryData doesn t (currently) provide an interface for this information. Is every sense associated with one of the 45 lexnames? Tell me
      Message 2 of 5 , Aug 24, 2004
        On Thu, Aug 19, 2004 at 03:18:00PM -0000, iveychiu wrote:
        > How would I access the lexnames (i.e. <noun.animal>) from QueryData? I am using the
        > 1.31 release.

        As far as I know, QueryData doesn't (currently) provide an interface
        for this information. Is every sense associated with one of the 45
        lexnames? Tell me all you know about lexnames. It might be easy for
        me to add the interface.

        Jason
      • Ben
        Every synset is associated with the lexicographer filename from whence it came. This is encoded as the first two-digit number on a data file line. This number
        Message 3 of 5 , Aug 24, 2004
          Every synset is associated with the lexicographer filename from whence it came.
          This is encoded as the first two-digit number on a data file line.
          This number corresponds to the first field of a tab-separated list in the file 'lexnames' in the '/dict' directory.

          Example:
          data.noun [/noun.dat, though we're getting rid of the different Windows names as of next release, I believe] entry for the synset for 'entity#n#1':
          00001740 03 n 01 entity 0 003 ~ 00001930 n 0000 ...<etc.>
          03 = lexfile #

          And, in lexnames, the fourth line (#'s start at '00') is:
          03 <TAB> noun.Tops <TAB> 1
          (03\tnoun.Tops\t1\n)

          Incidentally, the '1' on that line is the C library part of speech (NOUN == 1).
          Also note that the synset key (entity%1:03:00::) contains the '03' as the first field after the part of speech.

          -- Ben Haskell
          -- WordNet Technical Support Specialist

          Jason Rennie wrote:
          On Thu, Aug 19, 2004 at 03:18:00PM -0000, iveychiu wrote:
          > How would I access the lexnames (i.e. <noun.animal>) from QueryData?  I am using the
          > 1.31 release.

          As far as I know, QueryData doesn't (currently) provide an interface
          for this information.  Is every sense associated with one of the 45
          lexnames?  Tell me all you know about lexnames.  It might be easy for
          me to add the interface.

          Jason


          To Post a message, send it to: wn-perl@...
          To Unsubscribe, send a blank message to: wn-perl-unsubscribe@...

          WordNet::QueryData web page: http://www.ai.mit.edu/~jrennie/WordNet/
          wn-perl@egroups.com web page: http://www.egroups.com/group/wn-perl


        • Jason Rennie
          ... I just released QueryData v1.34 with a lexname function that should do what you want. Check it out: http://people.csail.mit.edu/~jrennie/WordNet/ Let us
          Message 4 of 5 , Aug 24, 2004
            On Thu, Aug 19, 2004 at 03:18:00PM -0000, iveychiu wrote:
            > How would I access the lexnames (i.e. <noun.animal>) from QueryData? I am using the
            > 1.31 release.
            >
            > I assumed this would be similar to the "offset" function as the wn command for offset is -o
            > and the wn command for lexname is -a. However, "lexname" isn't listed as an "other
            > function" nor does it work when I tried it.

            I just released QueryData v1.34 with a "lexname" function that should
            do what you want. Check it out:

            http://people.csail.mit.edu/~jrennie/WordNet/

            Let us know if it works for you.

            Jason
          • Hla Hla Htay
            Dear I think You can not access this facility in WordNet::QueryData -1.3.1. You can run in command line like that wn flower -a -over Hla Hla ... Hi, How would
            Message 5 of 5 , Aug 24, 2004
              Dear
              I think You can not access this facility in WordNet::QueryData -1.3.1.
              You can run in command line like that
              wn flower -a -over

              Hla Hla



              --- "iveychiu" <i.chiu@...> wrote:
              Hi,

              How would I access the lexnames (i.e. <noun.animal>) from QueryData? I am using the
              1.31 release.

              I assumed this would be similar to the "offset" function as the wn command for offset is -o
              and the wn command for lexname is -a. However, "lexname" isn't listed as an "other
              function" nor does it work when I tried it.

              Thanks very much.

              Ivey





              To Post a message, send it to: wn-perl@...
              To Unsubscribe, send a blank message to: wn-perl-unsubscribe@...

              WordNet::QueryData web page: http://www.ai.mit.edu/~jrennie/WordNet/
              wn-perl@egroups.com web page: http://www.egroups.com/group/wn-perl
              Yahoo! Groups Links







              _____________________________________________________________
              Get YourName@... at---> http://mail.shizaam.com

              Get YourSite.Xaper.com at---> http://www.xaper.com
            Your message has been successfully submitted and would be delivered to recipients shortly.