星期五, 10月 28, 2011

20111028 wordnet 學習小記


wordnet
  • GUI of wordnet
    • artha
      Education/openSUSE_11.4

      Artha is a free cross-platform English thesaurus that works completely off-line and is based on WordNet. Stable releases for download are currently available for GNU/Linux and Microsoft Windows; it is tested on major Desktop Environments like GNOME, KDE, Xfce, etc and on Microsoft Windows XP, Vista and 7. Artha is released under the GNU General Public Licence version 2.
  • wordnet
    • openSUSE 可以藉由 one-click install 安裝
      http://software.opensuse.org/search?q=wordnet&baseproject=openSUSE%3A11.4&lang=zh_TW&exclude_debug=true
      可以藉由指令執行
      • 範例
        • # wn motorcar

          Information available for noun motorcar
          -hypen Hypernyms
          -hypon, -treen Hyponyms & Hyponym Tree
          -synsn Synonyms (ordered by estimated frequency)
          -partn Has Part Meronyms
          -meron All Meronyms
          -domtn Domain Terms
          -famln Familiarity & Polysemy Count
          -coorn Coordinate Terms (sisters)
          -hmern Hierarchical Meronyms
          -grepn List of Compound Words
          -over Overview of Senses

          No information available for verb motorcar

          No information available for adj motorcar

          No information available for adv motorcar

          • 會列出不同詞性有沒有相關
          #wn motorcar -hypen

          Synonyms/Hypernyms (Ordered by Estimated Frequency) of noun motorcar

          1 sense of motorcar                                                   

          Sense 1
          car, auto, automobile, machine, motorcar
                 => motor vehicle, automotive vehicle
                     => self-propelled vehicle
                         => wheeled vehicle
                             => vehicle
                                 => conveyance, transport
                                     => instrumentality, instrumentation
                                         => artifact, artefact
                                             => whole, unit
                                                 => object, physical object
                                                     => physical entity
                                                         => entity
                             => container
                                 => instrumentality, instrumentation
                                     => artifact, artefact
                                         => whole, unit
                                             => object, physical object
                                                 => physical entity
                                                     => entity
      • hypernyms 上位詞
        • -hypen
      • hyponyms 下位詞
        • -hypon
      • synonyms 同義詞
  • 透過瀏覽器執行
    • 在python內

      >>> import  nltk
      >>> nltk.app.wordnet()
      • 會呼叫瀏覽器, 在 localhost:8000 上面執行

沒有留言: