LING/C SC 581: Advanced Computational Linguistics. Lecture 7 Jan 31 st

Similar documents
LING 581: Advanced Computational Linguistics. Lecture Notes March 20th

Getting Started for Unix platforms

Run Time Tester Requirements Document

VMMC Installation Guide (Windows NT) Version 2.0

Visualization tools & demos and the ICSI Realization group

Textbook: T. Issariyakul and E. Hossain, Introduction to Network Simulator NS2, Springer

Installing and Testing JMonkeyEngine (jme)

Global WordNet Tools

Author : admin. In this post, I will shortly explain how a picture of a command running in console or terminal in GNU / Linux can be made

Workshop/Hackathon for the Wordnet Bahasa

OpenCount 100 Call Data Recording in the OpenCom 100 Communications System

Proteome Discoverer Version 1.3

Using ddd with postgres on the instructional computers

Cortex Gateway 2.0. Administrator Guide. September Document Version C

UHDAS and CODAS: Raising the Profile of Ocean Currents

INSTANT RUBYMINE ASSIMILATION BY DAVE JONES DOWNLOAD EBOOK : INSTANT RUBYMINE ASSIMILATION BY DAVE JONES PDF

A Quick-Start Guide for rseqdiff

Getting Started for Windows

DPV. Ramona Ranz, Andreas Hungele, Prof. Reinhard Holl

Development of an Expert System for Distinguishing Headaches from Migraines

Jmol and Crystal. Bob Hanson St. Olaf College, Northfield, MN

User Instruction Guide

Cross-Domain Development Kit XDK110 Platform for Application Development

Using ddd with postgres on the instructional computers

Diabetes Management Software V1.3 USER S MANUAL

AMERICAN SIGN LANGUAGE GREEN BOOKS, A TEACHER'S RESOURCE TEXT ON GRAMMAR AND CULTURE (GREEN BOOK SERIES) BY CHARLOTTE BAKER-SHENK

Emis Web Technical Guidance

Activant Acclaim. Using smit and p21adm. AIX suite: course 3 of 3

The EIB Driver. This document relates to EIB driver version 1.0

Spectrum. Quick Start Tutorial

Content Part 2 Users manual... 4

Fully Automated IFA Processor LIS User Manual

Marieb Lab Manual Answer Key Second

Knowledge Resource Centers: An overview

Disclosures. Background. Equipment 2/4/2015

Assignment 5: Integrative epigenomics analysis

User Guide for Classification of Diabetes: A search tool for identifying miscoded, misclassified or misdiagnosed patients

OneTouch Reveal Web Application. User Manual for Patients Instructions for Use

Medtech32 Diabetes Get Checked II Advanced Form Release Notes

AudioConsole. User Guide. Doc. No EN/01 Part No EN

Wimba Classroom Captioner Guide

Figure 1: The EVH board

Wiktionary RDF. Transformation of Japanese Wiktionary to Linked Open Data SIG-SWO

GridMAT-MD: A Grid-based Membrane Analysis Tool for use with Molecular Dynamics

Lionbridge Connector for Hybris. User Guide

Symantec ESM Agent for IBM AS/400 Installation Guide. Version: 6.5

P-B-54.30/141. Instrument Cluster SCN Coding for Component Replacement or Dealer Installed Accessories:

Quick Start Guide for the CPI Web Training Modules and Assessment FOR NEW USERS

Natural Logic Inference for Emotion Detection

L U M I N AT E C O M M U N I T Y M O N T H LY W E B I N A R S E R I E S

PedCath IMPACT User s Guide

Clay Tablet Connector for hybris. User Guide. Version 1.5.0

Learning Period 3: 10/28-11/22

Presenter s name. STM8 StartUp

icommunicator, Leading Speech-to-Text-To-Sign Language Software System, Announces Version 5.0

Lecture 10: POS Tagging Review. LING 1330/2330: Introduction to Computational Linguistics Na-Rae Han

The Origins and Promise of PROMIS Patient Reported Outcomes Measurement Information System

Hour 2: lm (regression), plot (scatterplots), cooks.distance and resid (diagnostics) Stat 302, Winter 2016 SFU, Week 3, Hour 1, Page 1

MYFITNESSPAL: SETTING UP AN ACCOUNT

Publishing WFS Services Tutorial

NMR. Sample preparation. and Analysis

Content. The Origin. What is new in Déjà Vu X3? Transition smoothly from Déjà Vu X2 to. Déjà Vu X3. Help and guidance for my Déjà Vu X3

Audit Firm Administrator steps to follow

NSP Network Services Platform Release Deployment Overview. 3HE AAAD-TQZZA Issue 2 October 2017

DICOM Tractography Converter

Intro to R. Professor Clayton Nall h/t Thomas Leeper, Ph.D. (University of Aarhus) and Teppei Yamamoto, Ph.D. (MIT) June 26, 2014

American Academy of Sleep Medicine Membership

Actinic Link for Sage Line 50. Release Notes

Instructions for the ECN201 Project on Least-Cost Nutritionally-Adequate Diets

BSL Level 3. Gary L Taylor

Nourishing Hope For Autism: Nutrition And Diet Guide For Healing Our Children [Perfect Paperback] By Julie Matthews, CNC

OneTouch Reveal Web Application. User Manual for Healthcare Professionals Instructions for Use

Assistive Technologies

ONLINE. Online supplementary information S1 (Box) Method. Supplementary data. Online links

CYBERWEB. Vertebral Fracture Analysis. PyCon 2006 Dallas, TX February 24, 2006

Lesson 3 Profex Graphical User Interface for BGMN and Fullprof

Double Your Weight Loss By Using A Journal

SOCIAL DETERMINANTS OF HEALTH: A COMPARATIVE APPROACH BY ALAN DAVIDSON

The Fitbit Aria Wi-Fi Smart Scale 4 AA batteries, already installed

Florida Standards Assessments

Institute of Marine Research

Speech Recognition. Setup Guide for Win 7. Debbie Hebert, PT, ATP Central AT Services

Customer Guide to ShoreTel TAPI- VoIP Integrations. March

FINAL REPORT Measuring Semantic Relatedness using a Medical Taxonomy. Siddharth Patwardhan. August 2003

Immunization Scheduler Quick Start Guide

University of Toronto. Final Report. myacl. Student: Alaa Abdulaal Pirave Eahalaivan Nirtal Shah. Professor: Jonathan Rose

myphonak app User Guide

Sleep Apnea Therapy Software Clinician Manual

COMP 3020: Human-Computer Interaction I Fall 2017

TMWSuite. DAT Interactive interface

Agenda. MyFitnessPal.com Introduction Finding the Site & Signing Up Navigating the Site Tracking Foods & Exercise Printing Information

BOOKING RULES REVISIONS & SUPPORT FOR MULTIPLE CRS

Medtech Training Guide

PSYCHOLOGY IN YOUR LIFE (SECOND EDITION) BY SARAH GRISON, TODD HEATHERTON, MICHAEL GAZZANIGA

ACHS Participant Handout for: Client Attraction Secrets

BIOL 266: Human Anatomy & Physiology II Spring 2017; MWF 1:30 2:20pm, Newton 203

Location: Murrieta Learning Center Day/Time: Wednesday 2:00-3:00


Transcription:

LING/C SC 581: Advanced Computational Linguistics Lecture 7 Jan 31 st

Administrivia 1. There is no lecture 6. This lecture 7 replaces both 6 and 7. 2. Today's topic: WordNet 3. Today's homework (HW 6): Manually install the WordNet database and browser (wnb) from Princeton and the query module for PERL Test it! 4. Note: WordNet is part of nltk.corpus, see a few slides later (test it too!)

Today s Topic WordNet 3.0 (3.1 the latest version but only online or the database files only) http://wordnetweb.princeton.edu/perl/webwn Homework: do the installations and use the programs in this lecture online version of the WordNet browser!

WordNet 3.0 https://wordnet.princeton.edu

NLTK and WordNet Test your nltk WordNet: http://www.nltk.org/howto/wordnet.html >>> from nltk.corpus import wordnet as wn >>> wn.synsets('cat') [Synset('cat.n.01'), Synset('guy.n.01'), Synset('cat.n.03'), Synset('kat.n.01'), Synset('cat-o'- nine-tails.n.01'), Synset('caterpillar.n.02'), Synset('big_cat.n.01'), Synset('computerized_tomography.n.01'), Synset('cat.v.01'), Synset('vomit.v.01')] >>> s = wn.synsets('cat') >>> s[6] Synset('big_cat.n.01') >>> s[6].lemma_names() ['big_cat', 'cat'] >>> s[6].lemma_names('fra') ['chat', 'fauve', 'félin'] >>> s[6].hypernyms() [Synset('feline.n.01')] >>> s[6].hypernyms()[0].hypernyms() [Synset('carnivore.n.01')] >>> s[6].hypernyms()[0].hypernyms()[0].hy pernyms() [Synset('placental.n.01')]

WordNet 3.0 Download: https://wordnet.princeton.edu/download/current-version 2.1 is obsolete, don't want that!

WordNet 3.0 Steps Download.. from website (Tcl = tool control language) (Tk = GUI toolkit README Beginning with Version 2.1, we changed the Unix package to a GNU Autotools package. The WordNet browser makes use of the open source Tcl and Tk packages. Tcl and Tk must be installed BEFORE you compile WordNet. You must also have a C compiler before installing Tcl/Tk or WordNet. WordNet has been built and tested with the GNU gcc compiler.

WordNet 3.0 Steps GNU Autoconf configure cd Downloads/WordNet-3.0./configure checking for gcc... gcc config.status: creating Makefile need to have Xcode installed on Mac checking for Tcl configuration... configure: WARNING:./configure Can't find Tcl configuration definitions INSTALL If you're running OS X and installed the Aqua Tcl/Tk package from the web site above, use the following settings: --with-tcl=/system/library/frameworks/tcl.framework --with-tk=/system/library/frameworks/tk.framework OSX 10.9 make /usr/bin/make

WordNet 3.0 on MacOS

WordNet 3.0 GNU Autoconf./configure -withtcl=/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/ SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Tcl.framework/ -withtk=/applications/xcode.app/contents/developer/platforms/macosx.platform/developer/s DKs/MacOSX10.9.sdk/System/Library/Frameworks/Tk.framework/ checking for gcc... gcc checking for Tcl configuration... found /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs /MacOSX10.9.sdk/System/Library/Frameworks/Tcl.framework/tclConfig.sh checking for Tk configuration... found /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs /MacOSX10.9.sdk/System/Library/Frameworks/Tk.framework/tkConfig.sh checking for existence of /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs /MacOSX10.9.sdk/System/Library/Frameworks/Tcl.framework/tclConfig.sh... loading checking for existence of /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs /MacOSX10.9.sdk/System/Library/Frameworks/Tk.framework/tkConfig.sh... loading configure: creating./config.status config.status: creating Makefile

WordNet 3.0

WordNet 3.0 make a.h file means a C compiler header file X11 is now under /opt/x11, include files are in /opt/x11/include

WordNet 3.0 configure./configure -withtcl=/system/library/frameworks/tcl.framework/ -withtk=/system/library/frameworks/tk.framework/ CFLAGS=- I/opt/X11/include make gcc -I/opt/X11/include -o wishwn wishwn-tkappinit.o wishwn-stubs.o -L../lib -lwn -F/System/Library/Frameworks - framework Tk -F/System/Library/Frameworks -framework Tcl - lpthread -framework CoreFoundation -framework Cocoa - framework Carbon -framework IOKit -lpthread -framework CoreFoundation See also https://stackoverflow.com/questions/23658393/installing-wordnet-on-mac-10-9-2

WordNet 3.0 On Macs, make sure directory /opt/x11 exists already. If not, obviously CFLAGS=-I/opt/X11/include won't work Install XQuartz from https://www.xquartz.org

WordNet 3.0 sudo make install Making install in src test -z "/usr/local/wordnet-3.0/bin" /Users/sandiway/Downloads/WordNet-3.0/install-sh -d "/usr/local/wordnet-3.0/bin" /usr/bin/install -c 'wn' '/usr/local/wordnet-3.0/bin/wn' /usr/bin/install -c 'wishwn' '/usr/local/wordnet-3.0/bin/wishwn' test -z "/usr/local/wordnet-3.0/bin" /Users/sandiway/Downloads/WordNet-3.0/install-sh -d "/usr/local/wordnet-3.0/bin" /usr/bin/install -c 'wnb' '/usr/local/wordnet-3.0/bin/wnb Running the WordNet browser: /usr/local/wordnet-3.0/bin/wnb /usr/local/wordnet-3.0/bin/wnb: line 3: wishwn: command not found

WordNet 3.0 PATH to wnb (WordNet browser) export PATH=/usr/local/WordNet-3.0/bin:$PATH which wnb /usr/local/wordnet-3.0/bin/wnb wnb Put PATH modification in your startup shell script, e.g..profile.login.bash_profile requires packages: gcc make configure (GNU autoconf) TCL/TK

WordNet 3.1 vs 3.0 3.0 3.1

Perl Interface to WordNet 3.0 http://www.cpan.org/ look for WordNet QueryData

Perl Interface to WordNet 3.0 http://search.cpan.org/~jrennie/wordnet-querydata-1.49/querydata.pm

Perl Interface to WordNet 3.0 Use the cpanm command or manually (see next slides) dhcp-10-142-168-95:5.18 sandiway$ sudo cpanm WordNet::QueryData --> Working on WordNet::QueryData Fetching http://www.cpan.org/authors/id/j/jr/jrennie/wordnet- QueryData-1.49.tar.gz... OK Configuring WordNet-QueryData-1.49... OK Building and testing WordNet-QueryData-1.49... OK Successfully installed WordNet-QueryData-1.49 1 distribution installed

Perl Interface to WordNet 3.0

Perl Interface to WordNet 3.0 cd WordNet-QueryData-1.49 perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for WordNet::QueryData make cp QueryData.pm blib/lib/wordnet/querydata.pm Manifying blib/man3/wordnet::querydata.3pm make test PERL_DL_NONLAZY=1 /usr/bin/perl "- Iblib/lib" "-Iblib/arch" test.pl ok 1 ok 2 ok 3 ok 4 ok 5 ok 104 ok 105 ok 106 sudo make install ok 107 ok 108 Installing /Library/Perl/5.18/WordNet/QueryData.pm ok 109 Installing /usr/local/share/man/man3/wordnet::querydata.3pm Appending installation info to /Library/Perl/Updates/5.16.2/darwin-thread-multi-2level/perllocal.pod

Perl Interface to WordNet 3.0

Perl Interface to WordNet 3.0 perl wnqdata.perl print "Synset: ", join(", ", $wn->querysense("cat#n#7", "syns")), "\n"; Synset: big_cat#n#1, cat#n#7 print "Hyponyms: ", join(", ", $wn->querysense("cat#n#1", "hypo")), "\n"; Hyponyms: domestic_cat#n#1, wildcat#n#3 print "Parts of Speech: ", join(", ", $wn->querysense("run")), "\n"; Parts of Speech: run#n, run#v print "Senses: ", join(", ", $wn->querysense("run#v")), "\n";senses: run#v#1, run#v#2, run#v#3, run#v#4, run#v#5, run#v#6, run#v#7, run#v#8, run#v#9, run#v#10, run#v#11, run#v#12, run#v#13, run#v#14, run#v#15, run#v#16, run#v#17, run#v#18, run#v#19, run#v#20, run#v#21, run#v#22, run#v#23, run#v#24, run#v#25, run#v#26, run#v#27, run#v#28, run#v#29, run#v#30, run#v#31, run#v#32, run#v#33, run#v#34, run#v#35, run#v#36, run#v#37, run#v#38, run#v#39, run#v#40, run#v#41

Perl Interface to WordNet 3.0 perl wnqdata.perl print "Forms: ", join(", ", $wn->validforms("lay down#v")), "\n"; Forms: lay_down#v, lie_down#v print "Noun count: ", scalar($wn->listallwords("noun")), "\n"; Noun count: 117798 print "Antonyms: ", join(", ", $wn->queryword("dark#n#1", "ants")), "\n"; Antonyms: light#n#9

wnb WordNet browser: code written in tcl/tk, runs under wish

wnb Setup: export PATH=/usr/local/WordNet- 3.0/bin:$PATH wnb Options: see sense numbers (we ll need these later)

wnb Hypernyms (going up the hierarchy):

wnb Hyponyms (going down the hierarchy):

wnb Holonyms (part-of hierarchy):

wnb Meronyms (has parts, plus inherited):

wnb Meronyms (has parts, plus inherited):

wnb Derivationally related (different part-of-speech):

wnb Domain:

wnb Verbs