Computational Psycholinguistics. Tutorials. Garance PARIS. Tutorials. Winter Semester 2011/2012 1/18

Similar documents
Introduction Prolog Activity! Prolog. Dr. Mattox Beckman. University of Illinois at Urbana-Champaign Department of Computer Science

COMP 9416, session 1, 2006 p. 1. Datalog. COMP 9416, session 1, 2006

15-122: Principles of Imperative Computation

Programming Language Concepts, cs2104 Lecture 04 ( )

Prolog Introduction. Gunnar Gotshalks PI-1

Introduction to Logic Programming in Prolog 1 / 39

Using the Zoo Workstations

Exercises on the Fundamentals of Prolog

CS 241 Data Organization. August 21, 2018

CSCI 161: Introduction to Programming I Lab 1a: Programming Environment: Linux and Eclipse

San José State University Department of Computer Science CS-144, Advanced C++ Programming, Section 1, Spring 2018

IML 300: Reading and Writing the Web

CSC209. Software Tools and Systems Programming.

The University Registrar s office will supply you with a USER ID and an initial PIN.

CSC209. Software Tools and Systems Programming.

Barchard Introduction to SPSS Marks

Introduction to Prolog

CS 381: Programming Language Fundamentals

EECS 282 Information Systems Design and Programming. Atul Prakash Professor, Computer Science and Engineering University of Michigan

Barchard Introduction to SPSS Marks

Student Registration Instructions

EECS 282 Information Systems Design and Programming. Atul Prakash Professor, Computer Science and Engineering University of Michigan

Compilers for Modern Architectures Course Syllabus, Spring 2015

How to Activate Student Log in to the student Registration system (also known as My Community Education or Banner ).

Overview. CS389L: Automated Logical Reasoning. Lecture 6: First Order Logic Syntax and Semantics. Constants in First-Order Logic.

Session 1: Accessing MUGrid and Command Line Basics

CSE3322 Programming Languages and Implementation

Compilers. Computer Science 431

Blackboard 9.1

Desire2Learn. Student Guide. Information Technology Services. Outreach and Distance Learning Technologies

What is a Logic Program. Introduction to Logic Programming. Introductory Examples. Introductory Examples. Foundations, First-Order Language

Parent Portal Documents

CS1110 Lab 1 (Jan 27-28, 2015)

COMP 412, Fall 2018 Lab 1: A Front End for ILOC

HOUSTON COMMUNITY COLLEGE BUSINESS TECHNOLOGY NORTHEAST COLLEGE-NORTHLINE LOCATION COURSE SYLLABUS FALL 2011 COMPUTER APPLICATION I POFI 1301

Introduction to Logic Programming

JCCC Virtual Labs. Click the link for more information on installing on that device type. Windows PC/laptop Apple imac or MacBook ipad Android Linux

Programming Language Concepts, cs2104 Lecture 01 ( )

Introduction to Databases Fall-Winter 2010/11. Syllabus

First Order Logic Semantics (3A) Young W. Lim 6/2/17

KOMAR UNIVERSITY OF SCIENCE AND TECHNOLOGY (KUST)

Introduction to Information Technology ITP 101x (4 Units)

Getting Started with Python and the PyCharm IDE

First Order Logic Semantics (3A) Young W. Lim 6/1/17

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

Module Certification and Testing

Blackboard 5 Level One Student Manual

Patterns Continued and Concluded. July 26, 2017

UNIVERSITY OF NORTH TEXAS DEPARTMENT OF LEARNING TECHNOLOGIES SPRING

CS 3030 Scripting Languages Syllabus

CIS 3308 Web Application Programming Syllabus

Setup Instructions for Upgrading the Windows XP Panasonic CF-19 Toughbook to Windows 7

Contact No office hours, but is checked multiple times daily. - Specific questions/issues, particularly conceptual

Lab - 8 Awk Programming

First-Order Logic (FOL)

Student Guide Updated February 22, 2018

Blackboard Essentials

Students: Getting Started

Short Read Sequencing Analysis Workshop

Programming Language. Control Structures: Selection (switch) Eng. Anis Nazer First Semester

CS Fundamentals of Programming II Fall Very Basic UNIX

Spring Modern Computer Science in a Unix Like Environment CIS c

irespond Quick Reference Guide

Lecture 4: January 12, 2015

CIS192: Python Programming

Unix Tutorial Haverford Astronomy 2014/2015

Business Data Analysis MA0123. Dr Gavin Shaddick Department of Mathematical Sciences 4W 5.7

What is Prolog? - 1. A Prolog Tutorial. What is Prolog? - 2. Prolog Programming. » Declaring some facts about objects and their relationships

sftp - secure file transfer program - how to transfer files to and from nrs-labs

Semester 2, 2018: Lab 1

PIC 10A. Review for Midterm I

Austin Community College Google Apps Calendars Step-by-Step Guide

CS 241 Data Organization using C

Gradekeeper Version 5.7

You must pass the final exam to pass the course.

IT 280 Study Guide Winter Don Colton Brigham Young University Hawai i

Syllabus CSCI 405 Operating Systems Fall 2018

1. true / false By a compiler we mean a program that translates to code that will run natively on some machine.

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

CS 4240: Compilers and Interpreters Project Phase 1: Scanner and Parser Due Date: October 4 th 2015 (11:59 pm) (via T-square)

For those working on setting up Super Star Online for the school year, here are a few tips:

ACCUPLACER Placement Validity Study Guide

B. Subject-specific skills B1. Problem solving skills: Supply the student with the ability to solve different problems related to the topics

a little more on macros sort of like functions, but..

Part III Appendices 165

irespond Quick Reference Guide

IT 220 Course Notes. Don Colton Brigham Young University Hawaii

The Linux Command Line: A Complete Introduction, 1 st ed., by William E. Shotts, Jr., No Starch Press, 2012.

BCIS 3630 Dr. GUYNES SPRING 2018 TUESDAY SECTION [JAN version] GRADER COURSE WEBSITE

Crete-Monee School District 201-U. Your Guide to Family Access

e-storage Mail Archive e-storage Mai Archive

Week 1: Introduction to R, part 1

Introduction to Programming Paradigms. Prepared By: Neeraj Raheja

CS 375 UNIX System Programming Spring 2014 Syllabus

CENG 334 Computer Networks. Laboratory I Linux Tutorial

Please note: If you already have an active SAM 2016 Account from another CAWT course, you do not need to purchase another SAM Code for this course.

CS Final Exam Review Suggestions

WELCOME TO PROGRAMMING

CS 246 Winter Tutorial 1

The tupinjade package

Transcription:

Winter Semester 2011/2012 1/18

Roadmap Theories of sentence processing: modularity, parsing strategies, information sources, reanalysis Symbolic parsing models: incremental parsing, ambiguity resolution, memory load, probabilistic models Part I Probabilistic parsing models: Symbolic parsers augmented with probabilities, derived from experience Connectionist models Distributed models of language learning and language processing Part II Matthew W Crocker 2/18

Part I: Symbolic Models of Parsing Implement simple models: Bottom-up (shift-reduce), top-down, left-corner arc-standard and arc-eager Assess them using a simple linking hypothesis: Memory load Theory: Lecture 2 Part II: Connectionist Models More information later 3/18

Modeling Forces clear specification of theories instead of vague descriptions by requiring sufficient detail for implementation Tests the coherence of a theory, especially when interactions between its parts becomes complex Generates testable predictions Permits manipulations that may not be possible in an experiment (lesioning, long term changes, e g learning vocabulary in a foreign language) 4/18

COGENT: A Graphical Environment for Cognitive Modeling Idea: Simulate experiments (e g self-paced reading) and try to link the results to human data Box and arrow diagrams + a Prolog-like programming language Guided tour at http://cogentpsycbbkacuk/tour/ Runs on Mac, Windows and Linux (?) Intended for researchers, not end-users (devel-ware) NOT very stable! You should save your work often and frequently create new models and/or archives 5/18

COGENT in the Lab Boot/restart computer, turn on screen In the Grub menu containing operating systems, select MS Windows (be quick!) Login as cogent, making sure you select COLI-CIP Wait for startup script to finish executing A fresh copy of C:\LOCAL\cogent is copied from the server User data will be DELETED when you log out! 6/18

Saving Data Three possible ways: Connect to your Linux home directory: Open the Windows Explorer (not Internet Explorer) In Address bar, enter \\smb At the prompt, enter user and password to connect to your Coli account Create your own Cogent directory wherever you like in your home directory At the beginning/end of tutorial, copy files back and forth between your home directory and the local COGENT directory 7/18

Saving Data (continued) Other possibilities: Insert a USB stick Use SFTP to connect to another machine Main servers on which you can access your Coli account: login and login2 From the computer lab, only login is accessible Use of Other Computers You can also use COGENT on your laptop in class if you wish COGENT runs on login (Linux) and can be accessed via SSH and X forwarding, but this can break any day due to Ubuntu upgrade (also, please keep an eye on the server load!) 8/18

Prolog Syntax: Term Types Atoms: Begin with a lower-case letter e g socrates Variables: Begin with a capital or _ (underscore) e g Word, _G9876 Anonymous variable: _ (underscore) (A variable which you do not care to give a name to, often because it does not occur more than once) Complex terms: e g love(john,mary) functor: love arguments: john, mary arity: number of arguments (love/2) nesting: word(noun(sg(dog),pl(dogs))) word(noun(dog,sg)) word(noun(dogs,pl)) 9/18

Prolog Syntax: Lists (1) Basic notation: [element1, element2, element3] Used to represent sentences: [the, cat, chases, the, dog] Non-empty lists always consist of the list s first element and its tail, which is in itself a list: [element1 [element2, element3] ] [john, loves, mary] john [loves, mary] loves [mary] mary [] 10/18

Prolog Syntax: Lists (2) The inbuilt operator separates the first element from the rest: [Head Tail] or [First Rest] The last element is special: The empty list ( [] ) It cannot be taken apart and does not unify with anything else A singleton (one-element list) like [element3] is therefore really equal to [element3 [] ] When we process a list element-wise and reach [], we know we have reached the end of the list (we re done) 11/18

Prolog Syntax: Knowledge Facts (statements which are true): Example: human(socrates) Used for words in the lexicon: n(man) adj(tall) Note the dot at the end Rules: Example: mortal(x) :- human(x) All humans are mortal (if X is a human, then X is mortal) :- denotes implication: If the right-hand-side is true, then the left-hand-side is also true 12/18

Prolog Syntax: Unification Equating two terms which have the same structure, thereby setting the variables in one term to the corresponding values in the other term As a consequence all other occurences of a given variable are also bound with the same value Example: Given human(socrates) mortal(x) :- human(x) human(x) can be unified with human(socrates) and therefore we learn that mortal(socrates) Often used to bind variables 13/18

Organizational : Wednesday 14 16h Presence in the tutorial session is obligatory unless excused (e-mail) Part I has approximately 6 tutorials + mini-projects (2 sessions) Students are expected to finish each worksheet by the next session (4 5 hours of homework a week until Christmas) 14/18

Organizational, continued Timely completion of all tutorials and mini-project is required to sit the exam For each tutorial, submit an archive of your model and/or report by Monday will be marked on a pass or fail basis (no grades) Questions/problems: Please contact me early on to arrange a meeting if necessary 15/18

Coli Accounts Department policy: Your Coli e-mail is your official contact address Even if we work under Windows most of the time, you need a Coli account Werner Saurer sends potentially important information about exams to students@coli You must read your Coli e-mail! (especially external students) Assignments must be submitted using your Coli address (But you can forward your e-mail to another address + set up other software (Gmail, ) to display your Coli address as a sender) 16/18

Coli Accounts Account configuration: See the System administrator s wiki: http://wwwcoliuni-saarlandde/sg/ Changing your password: http://wikicoliuni-saarlandde/wiki/index php/password Forwarding E-Mails: http://wikicoliuni-saarlandde/mail2/ indexphp/main_page Help: Ask a friend, the Fachschaft or me 17/18

Course Mailing List We have a mailing list for the course: comppsych@coli Frequently Asked Questions http://wwwcoliuni-saarlandde/~gparis/cours/ CP_/faqphp Including: How to create archives in COGENT (for submitting your tutorials) 18/18