LING/C SC/PSYC 438/538 Computational Linguistics Sandiway Fong Lecture 16: 10/23.

Slides:



Advertisements
Similar presentations
LING 438/538 Computational Linguistics Sandiway Fong Lecture 17: 10/25.
Advertisements

LING/C SC/PSYC 438/538 Lecture 11 Sandiway Fong. Administrivia Homework 3 graded.
Theory Of Automata By Dr. MM Alam
LING 388: Language and Computers Sandiway Fong Lecture 5: 9/8.
LING/C SC/PSYC 438/538 Computational Linguistics Sandiway Fong Lecture 13: 10/9.
LING 388: Language and Computers Sandiway Fong Lecture 9: 9/27.
Congruent Polygons and Corresponding Parts Objective: to name corresponding parts of congruent polygons and write congruence statements for congruent figures.
Introduction to Computer Programming in C
LING 438/538 Computational Linguistics Sandiway Fong Lecture 16: 10/19.
LING 388: Language and Computers Sandiway Fong Lecture 9: 9/22.
LING/C SC/PSYC 438/538 Computational Linguistics Sandiway Fong Lecture 12: 10/4.
LING 388: Language and Computers Sandiway Fong Lecture 12: 10/5.
LING/C SC/PSYC 438/538 Computational Linguistics Sandiway Fong Lecture 7: 9/11.
LING 388: Language and Computers Sandiway Fong Lecture 28: 12/6.
LING/C SC/PSYC 438/538 Computational Linguistics Sandiway Fong Lecture 6: 9/6.
Computational language: week 9 Finish finite state machines FSA’s for modelling word structure Declarative language models knowledge representation and.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 11: 10/3.
LING 388: Language and Computers Sandiway Fong Lecture 6: 9/13.
LING 388: Language and Computers Sandiway Fong Lecture 11: 10/3.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 12: 10/5.
LING 388 Language and Computers Lecture 11 10/7/03 Sandiway FONG.
LING/C SC/PSYC 438/538 Midterm 10/11. Instructions It is recommended that you attempt all questions –Submit your answers in one file by to
LING 388: Language and Computers Sandiway Fong Lecture 10: 9/26.
LING/C SC/PSYC 438/538 Computational Linguistics Sandiway Fong Lecture 11: 10/2.
LING/C SC/PSYC 438/538 Computational Linguistics Sandiway Fong Lecture 15: 10/16.
LING 438/538 Computational Linguistics Sandiway Fong Lecture 14: 10/12.
Bell Work InOut Find the pattern and fill in the numbers then write the function rule. Function rule: y= x
x + 5 = 20 x+5 20 (-5) x + 5 = 20 x 20 (-5) x + 5 = 20.
Problem Solving Methods. Class Objectives Learn to apply the problem solving process Learn techniques for error-free problem solving.
October 2006Advanced Topics in NLP1 CSA3050: NLP Algorithms Finite State Transducers for Morphological Parsing.
Lecture 1, 7/21/2005Natural Language Processing1 CS60057 Speech &Natural Language Processing Autumn 2007 Lecture4 1 August 2007.
Morphological Recognition We take each sub-lexicon of each stem class and we expand each arc (e.g. the reg-noun arc) with all the morphemes that make up.
LING 388: Language and Computers Sandiway Fong Lecture 22: 11/10.
LING 438/538 Computational Linguistics
LING 388: Language and Computers Sandiway Fong Lecture 30 12/8.
Lexical Analysis — Part II: Constructing a Scanner from Regular Expressions.
LING/C SC/PSYC 438/538 Lecture 19 Sandiway Fong. Administrivia Next Monday – guest lecture from Dr. Jerry Ball of the Air Force Research Labs to be continued.
LING/C SC/PSYC 438/538 Lecture 7 9/15 Sandiway Fong.
Finite State Transducers for Morphological Parsing
LING/C SC/PSYC 438/538 Lecture 12 10/4 Sandiway Fong.
Today we will solve equations with two variables. Solve = figure out.
LING 388: Language and Computers Sandiway Fong 9/27 Lecture 10.
Chapter 2: Equations and Inequalities
Copyright © Curt Hill Finite State Automata Again This Time No Output.
LING/C SC/PSYC 438/538 Lecture 8 Sandiway Fong. Adminstrivia Homework 4 not yet graded …
LING/C SC/PSYC 438/538 Lecture 14 Sandiway Fong. Administrivia Homework 6 graded.
LING/C SC/PSYC 438/538 Lecture 15 Sandiway Fong. Did you install SWI Prolog?
LING/C SC 581: Advanced Computational Linguistics Lecture Notes Jan 13 th.
Name ______ Lesson 2 – Patterns from Gr. 6_ Page 12 Tables
LING/C SC/PSYC 438/538 Online Lecture 7 Sandiway Fong.
Bell Work11/13/14 The points are plotted onto the graph for you, be sure to NAME the quadrant.
Warm-Up Exercises Warm-up: Countdown to Mastery Week #4 Homework- Page 44 #3-9 all #14-21 all.
CIS 505: Programming- Language Paradigms Torben Amtoft Xinming (Simon) Ou Aug 23, 2010.
Chapter 1 – Expressions, Equations, and Functions Algebra I A - Meeting 4 Section 1.6 – Represent Functions as Rules and Tables Function – is a pairing.
Warm-Up Exercises 1. Make a table for y = 2x + 3 with domain 0, 3, 6, and Write a rule for the function. ANSWER y = 3x + 1 x0369 y Input, x.
CIS, Ludwig-Maximilians-Universität München Computational Morphology
Warm Up Solve. 1. x + 4 = y – 2.3 = z = 120 x = 15
Significant Figures Significant figures are those numbers considered to be important in value All non-zero digits are significant Zeros are NOT always.
AS Computer Studies Finite State Machines 2.
LING/C SC/PSYC 438/538 Lecture 17 Sandiway Fong.
Model Functions Input x 6 = Output Input x 3 = Output
CPSC 388 – Compiler Design and Construction
Figures & Tables from the textbook.
Dr. Clincy Professor of CS
LING/C SC/PSYC 438/538 Lecture 17 Sandiway Fong.
POD #30 1/31/19 Write the rule for the following tables:
Recap lecture 19 NFA corresponding to Closure of FA, Examples, Memory required to recognize a language, Example, Distinguishing one string from another,
Recap lecture 20 Recap Theorem, Example, Finite Automaton with output, Moore machine, Examples.
U N I T 7B.
CSCI 5832 Natural Language Processing
Presentation transcript:

LING/C SC/PSYC 438/538 Computational Linguistics Sandiway Fong Lecture 16: 10/23

Midterm graded and returned +1 scaling applied –Final will be on material covered after midterm only –There will be one or two graded homeworks as well to come

Question 6 [Correction to lecture 15 slides] Give the deterministic FSA corresponding to:

Answer 6 [Correction to lecture 15 slides] Deterministic machine a 3 c 4 c a b b c 6 a

Recap Following Chapter 3 of the textbook

Stage 1: Lexical  Intermediate Levels Figure 3.17 (top half): tape view of input/output pairs

The Mapping Problem Example: (3.11) (Context-Sensitive) Spelling Rule: (3.5) –   e / { x, s, z } ^ __ s#  rewrites to letter e in left context x^ or s^ or z^ and right context s# i.e. insert e after the ^ when you see x^s# or s^s# or z^s# in particular, we have x^s#  x^es#

Stage 2: Intermediate  Surface Levels also can be implemented using a FST important! machine is designed to pass input not matching the rule through unmodified (rather than fail) implements context-sensitive rule q 0 to q 2 : left context q 3 to q 0 : right context

Stage 2: Intermediate  Surface Levels Example (3.17)

Stage 2: Intermediate  Surface Levels Transition table for FST in 3.14 pg.79

Stage 2: Intermediate  Surface Levels Class Exercise –Let’s build this FST in Prolog together –state by state

Stage 2: Intermediate  Surface Levels A Note on Prolog –it will be useful to employ the cut predicate for the implementation of “other” ! is known as the “cut” predicate –it affects how Prolog backtracks for another solution –it means “cut” the backtracking off –Prolog will not try any other possible matching rule on backtracking

FST 3.14 in Prolog % To run: ?- q0([f,o,x,^,s,#],L). L = [f,o,x,e,s,#] % q0 q0([],[]).% final state case q0([z|L1],[z|L2]) :- !, q1(L1,L2). % q0 - z -> q1 q0([s|L1],[s|L2]) :- !, q1(L1,L2). % q0 - s -> q1 q0([x|L1],[x|L2]) :- !, q1(L1,L2). % q0 - x -> q1 q0([#|L1],[#|L2]) :- !, q0(L1,L2). % q0 - # -> q0 q0([^|L1],L2) :- !, q0(L1,L2). % q0 - ^:ep -> q0 q0([X|L1],[X|L2]) :- q0(L1,L2). % q0 - other -> q0

FST 3.14 in Prolog % q1 q1([],[]).% final state case q1([z|L1],[z|L2]) :- !, q1(L1,L2). % q1 - z -> q1 q1([s|L1],[s|L2]) :- !, q1(L1,L2). % q1 - s -> q1 q1([x|L1],[x|L2]) :- !, q1(L1,L2). % q1 - x -> q1 q1([^|L1],L2) :- !, q2(L1,L2). % q1 - ^:ep -> q2 q1([#|L1],[#|L2]) :- !, q0(L1,L2). % q1 - # -> q0 q1([X|L1],[X|L2]) :- q0(L1,L2). % q1 - other -> q0

FST 3.14 in Prolog % q2 q2([],[]).% final state case q2(L1,[e|L2]) :- q3(L1,L2). % q2 - ep:e -> q3 q2([s|L1],[s|L2]) :- !, q5(L1,L2). % q2 - s -> q5 q2([z|L1],[z|L2]) :- !, q1(L1,L2). % q2 - z -> q1 q2([x|L1],[x|L2]) :- !, q1(L1,L2). % q2 - x -> q1 q2([#|L1],[#|L2]) :- !, q0(L1,L2). % q2 - # -> q0 q2([X|L1],[X|L2]) :- \+ X = ^, q0(L1,L2). % q2 - other - > q0

FST 3.14 in Prolog % q3 q3([s|L1],[s|L2]) :- q4(L1,L2). % q3 - s -> q4 % q4 q4([#|L1],[#|L2]) :- q0(L1,L2). % q4 - # -> q0

FST 3.14 in Prolog % q5 q5([z|L1],[z|L2]) :- !, q1(L1,L2). % q5 - z -> q1 q5([s|L1],[s|L2]) :- !, q1(L1,L2). % q5 - s -> q1 q5([x|L1],[x|L2]) :- !, q1(L1,L2). % q5 - x -> q1 q5([^|L1],L2) :- !, q2(L1,L2). % q5 - ^:e -> q2 q5([X|L1],[X|L2]) :- \+ X = #, q0(L1,L2). % q5 - other -> q0