For Monday
- Read chapter 23, sections 1-2
- FOIL exercise due
For Monday Read chapter 23, sections 1-2 FOIL exercise due Program - - PowerPoint PPT Presentation
For Monday Read chapter 23, sections 1-2 FOIL exercise due Program 4 Any questions? Natural Language Processing Whats the goal? Communication Communication for the speaker: Intention: Decided why, when, and what
showing the phrase structure
in some representation, e.g. FOPC.
the meaning of the sentence
acoustic/ phonetic syntax semantics pragmatics Speech recognition Parsing Sound waves words Parse trees literal meaning meaning
I saw the man on the hill with a telescope on Tuesday in Austin...
function BOTTOM-UP-PARSE(words, grammar) returns a parse tree forest words loop do if LENGTH(forest) = 1 and CATEGORY(forest[1]) = START(grammar) then return forest[1] else i choose from {1...LENGTH(forest)} rule choose from RULES(grammar) n LENGTH(RULE-RHS(rule)) subsequence SUBSEQUENCE(forest, i, i+n-1) if MATCH(subsequence, RULE-RHS(rule)) then forest[i...i+n-1] / [MAKE-NODE(RULE-LHS(rule), subsequence)] else fail end