LING 408/508: Programming for Linguists Lecture 26 December 7 th.

Slides:



Advertisements
Similar presentations
Module R2 CS450. Next Week R1 is due next Friday ▫Bring manuals in a binder - make sure to have a cover page with group number, module, and date. You.
Advertisements

LING 388: Language and Computers Sandiway Fong Lecture 2.
LING 581: Advanced Computational Linguistics Lecture Notes January 19th.
Week 8 The Natural Language Toolkit (NLTK)‏ Except where otherwise noted, this work is licensed under:
LING 581: Advanced Computational Linguistics Lecture Notes March 9th.
LING/C SC/PSYC 438/538 Lecture 4 9/1 Sandiway Fong.
Project topics Projects are due till the end of May Choose one of these topics or think of something else you’d like to code and send me the details (so.
Natural Language ToolKit ( What is nltk? A tool which allows you to do NLP stuff such as Finding similar words in context, POS tagging etc.
LING 581: Advanced Computational Linguistics Lecture Notes January 26th.
1 More on Arrays Arrays of objects Command line arguments The ArrayList class Javadoc Review Lecture 8 notes and L&L 7.1 – 7.2 Reading for this lecture:
Principles of Procedural Programming
NATURAL LANGUAGE TOOLKIT(NLTK) April Corbet. Overview 1. What is NLTK? 2. NLTK Basic Functionalities 3. Part of Speech Tagging 4. Chunking and Trees 5.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
LING 408/508: Programming for Linguists Lecture 19 November 4 th.
ELN – Natural Language Processing Giuseppe Attardi
Java Programming, 3e Concepts and Techniques Chapter 2 Creating a Java Application and Applet.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 18 Topics: Intro to HTML/CSS: Questions? Summer Work Letter.
LING/C SC/PSYC 438/538 Lecture 5 Sandiway Fong. Today’s Topics File input/output – open, References Perl modules Homework 2: due next Monday by midnight.
Hyperlinks. Linking pages…Hyperlinks 2 Lecture 8  Hyperlink “A clickable HTML element that will direct the web browser to display a different Web page.
LING 408/508: Programming for Linguists Lecture 3 August 31 st.
Lecture 6 Hidden Markov Models Topics Smoothing again: Readings: Chapters January 16, 2013 CSCE 771 Natural Language Processing.
| nectar.org.au NECTAR TRAINING Module 10 Beyond the Dashboard.
LING/C SC/PSYC 438/538 Lecture 2 Sandiway Fong. Today’s Topics Did you read Chapter 1 of JM? – Short Homework 2 (submit by midnight Friday) Today is Perl.
IS1825: Developing Multimedia Applications for Business Lecture 1: Introduction to CSS Rob Gleasure
LING 581: Advanced Computational Linguistics Lecture Notes February 19th.
Natural language processing tools Lê Đức Trọng 1.
Python Functions.
Linux Services Configuration
LING 408/508: Programming for Linguists Lecture 18 November 2 nd.
Tools for Linguistic Analysis. Overview of Linguistic Tools  Dictionaries  Linguistic Inquiry and Word Count (LIWC) Linguistic Inquiry and Word Count.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
LING 408/508: Programming for Linguists Lecture 16 October 26 th.
LING 408/508: Programming for Linguists Lecture 15 October 21 th.
©2012 Paula Matuszek CSC 9010: Text Mining Applications Lab 2 Dr. Paula Matuszek (610)
LING/C SC/PSYC 438/538 Lecture 11 Sandiway Fong. Administrivia Homework 5 graded.
LING 408/508: Programming for Linguists Lecture 20 November 16 th.
LING/C SC/PSYC 438/538 Lecture 18 Sandiway Fong. Adminstrivia Homework 7 out today – due Saturday by midnight.
LING 408/508: Programming for Linguists Lecture 27 December 9 th.
 Packages:  Scrapy, Beautiful Soup  Scrapy  Website  
LING/C SC/PSYC 438/538 Lecture 9 Sandiway Fong. Adminstrivia Homework 4 graded Homework 5 out today – Due Saturday night by midnight – (Gives me Sunday.
LING 408/508: Programming for Linguists Lecture 19 November 9 th.
LING 408/508: Programming for Linguists Online Lecture 7 September 16 th.
Web Scraping with Python and Selenium. What is Web Scraping?  Software technique for extracting info from websites Get information programmatically that.
PROGRAMMING USING PYTHON LANGUAGE ASSIGNMENT 1. INSTALLATION OF RASPBERRY NOOB First prepare the SD card provided in the kit by loading an Operating System.
VNVe First computer lab Lector: Petr Veigend Brno University of Technology, Faculty of Information Technology Božetěchova 1/2, Brno - Královo Pole.
LING/C SC 581: Advanced Computational Linguistics Lecture Notes Feb 17 th.
Problem Solving with NLTK MSE 2400 EaLiCaRA Dr. Tom Way.
LING 581: Advanced Computational Linguistics Lecture Notes March 2nd.
LING/C SC/PSYC 438/538 Lecture 5 Sandiway Fong.
CSCE 590 Web Scraping – NLTK
Natural Language Processing (NLP)
LING/C SC/PSYC 438/538 Lecture 2 Sandiway Fong.
LING/C SC 581: Advanced Computational Linguistics
LING 388: Computers and Language
LING 388: Computers and Language
Text Analytics Giuseppe Attardi Università di Pisa
LING/C SC 581: Advanced Computational Linguistics
LING 581: Advanced Computational Linguistics
LING 388: Computers and Language
LING/C SC 581: Advanced Computational Linguistics
LING 408/508: Computational Techniques for Linguists
LING 388: Computers and Language
LING/C SC/PSYC 438/538 Lecture 13 Sandiway Fong.
LING 408/508: Computational Techniques for Linguists
LING/C SC 581: Advanced Computational Linguistics
Natural Language Processing (NLP)
Bryan Burlingame 24 April 2019
LING/C SC 581: Advanced Computational Linguistics
LING/C SC 581: Advanced Computational Linguistics
Natural Language Processing (NLP)
Presentation transcript:

LING 408/508: Programming for Linguists Lecture 26 December 7 th

Adminstrivia Due Dates – Term Programming Project Write-up and code by December 17 th – Homework 12 Install NLTK. Screenshots to show it working. Due Friday 11th

Install

get-pip.py

PIP (Pip Installs Packages)

Using pip to install nltk

Install nltk_data Command: –sudo python -m nltk.downloader -d /usr/local/share/nltk_data all

Test nltk

Test nltk_data

Ubuntu

curl Command line tool using URL syntax to transfer a file –curl URL (downloads file specified in HRL) – can understand http/https and ftp/sftp protocols

setuptools

Ubuntu pip

Ubuntu nltk

Ubuntu nltk_data

Homework 12 Install NLTK – show it working 1 st sentence from the WSJ section of the Penn Treebank

Homework 12 Pick a sentence of your choosing, tokenize and Part-of-Speech (POS) label it. Comment on whether the labeling is good. Tagset documented here

Homework 12 Pick another sentence with noun-noun compounds, – e.g. Helicopters will patrol the temporary no-fly zone around New Jersey's MetLife Stadium Sunday, with F-16s based in Atlantic City ready to be scrambled if an unauthorized aircraft does enter the restricted airspace. Tokenize, POS tag, and extract named entities

Homework 12

GPE = Geo-Political Entity

Today's Topics Chapter 11: Data Collections – Lists – Arrays – Dictionaries (Hash)

Lists We've seen these before … Example: –range(start,stop,step) – parameters are integers – start = 0 by default – step = 1 by default

Lists split:

Lists Basic operations:

Lists

a = [1,2,3]

Lists Lists are malleable: Can implement stacks and queues easily

Lists

Queue #1: list.append(x) and list.pop(0)

Lists Queue #2: list.insert(0,x) and list.pop(len(list)-1) non-object-oriented function: del

Higher order functions map(function,list) reduce(function,list) inline anonymous function: lambda example: λx.x+xlambda x:x+x filter(function,list)

Standard Deviation Example