Introduction to Speech & Natural Language Processing
Lecture 1
Information Layers of SNLP
Krishnendu Ghosh
Defining SNLP
Speech & Natural language processing (SNLP) is a field of artificial intelligence (AI) that allows machines to read, derive meaning from text, and produce documents.
It works in the background of many services, from chatbots through virtual assistants to social media tracking.
Such language technologies are already showing major penetration into the information and communication industry.
History of SNLP
1950-1960: prehistory, scientific knowledge regarding artificial intelligence and linguistics extremely limited
1960-1990: symbolic models, rules handwritten by experts, very limited coverage
1990-2010: statistical models, machine learning on data annotated by experts, good coverage
2010-present: neural models, machine learning on non-annotated data, excellent coverage
Stages of NLP
Stages of NLP: Phonetics
Phonetics is concerned with the production, transmission and perception of sounds, without prior knowledge of the language being spoken.
Importance: Phonetics
Example:
Word | IPA (Phonetic) | Meaning |
cat | kæt | Animal |
bat | bæt | Animal |
Stages of NLP: Phonology
Phonology studies the rules that organize patterns of sounds in human languages.
Example:
right/light, arrive/alive
Bengaluru
Importance: Phonology
Example:
Plural forms in English:
Stages of NLP: Morphology
Morphology is the study of how words are composed by morphemes, which are the smallest meaningful units of language.
The structure of a word consists of several morphemes:
Example: draw, draw+s, draw+ing+s, un+draw+able
Importance: Morphology
Example:
unhappiness = un- (prefix) + happy (root) + -ness (suffix)
Stages of NLP: Syntax
Syntax studies the rules and constraints that govern how words can be organized into sentences.
Connection with formal language theory and rewriting grammars.
Differently from formal language theory, NLP systems need to be robust to input that does not follow the rules of grammar.
Stages of NLP: Phrase structure
Example:
Alice/N eats/V strawberries/N with/P chocolate/N
Stages of NLP: Dependency tree
Example : Rolls-Royce said it expects its U.S. sales to remain steady.
Importance: Syntax
Stages of NLP: Semantics
Semantics is the study of the meaning of linguistic expressions such as words, phrases, and sentences.
Most common representations for semantic structure are:
Importance: Semantics
Example:
“bank” → [financial institution] or [river bank]
Stages of NLP: Pragmatics
Pragmatics studies the way linguistic expressions with their semantic meanings are used for specific communicative goals.
In contrast to semantics, pragmatics explicitly asks the question what an expression means in a given context.
An important concept in pragmatics is the speech act, which describes an action performed through language.
Importance: Pragmatics
Example:
“Can you pass the salt?” or “Can you open the window?” → not a question about ability, but a polite request.
Stages of NLP: Discourse analysis
Discourse analysis studies written and spoken language in relation to its social context.
Discourse refers to a piece of text with multiple sub-topics and coherence relations between them, such as:
Importance: Discourse analysis
Example:
“John bought a car. He loves it.” → “He” refers to “John”.