Files
2023-03-21 13:08:21 -05:00

34 lines
916 B
Markdown

# Syntax and parsing
## Course learning objectives
![](Files/clo.png)
## Topic learning objectives
![](Files/tlo.png)
# Intro to syntax and parsing
![](Files/syn1.png)
POS (Parts Of Speech) are lexical categories which we attach to words, equivalent to gramatical classes.
## Constituency
![](Files/syn1.png)
Constituents have a common behaviour, in this case, the noun phrases can appear before verbs
## Context-free grammars
![](Files/syn3.png)
The constituents can be formalized.
These are production rules and are composed of **non-terminals** (noun, phrase, det, etc.) and **terminal** symbols (words or symbols in the language)
*Symbol* -> *non-terminals* and/or *terminals*
The rules are used for generation or assigning structure.
Constituents form higher-level constituents.
![](Files/syn4.png)
Example
![](Files/syn5.png)
Another way of thinking about grammatical structure
![](Files/syn6.png)