Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Fundamentals of Linguistics

Fundamentals of Linguistics

Natural language processing (NLP), an important branch of artificial intelligence, has as its core enabling computers to understand, interpret, and generate human language. To master NLP, one must first understand the basic principles that underpin how human language works - this is the fundamentals of linguistics.

The fundamentals of linguistics provide NLP with a theoretical framework and analytical tools, mainly including the following key aspects:

  1. Phonetics: studying the sound system of language
  2. Phonology: studying how sounds combine into meaningful linguistic units
  3. Morphology: studying the internal structure of words
  4. Syntax: studying sentence structure
  5. Semantics: studying the meaning of language
  6. Pragmatics: studying the use of language in context


Phonetics and Phonology (Phonetics & Phonology)

Phonetics (Phonetics)

Phonetics studies the physical properties and production mechanisms of speech sounds, focusing on their acoustic and physiological features.

Speech organs and articulation

- Lungs: provide airflow - Larynx: vocal cord vibration produces voiced sounds - Oral cavity: tongue, teeth, and lips regulate airflow - Nasal cavity: produces nasal sounds

Consonant classification
Classified by manner and place of articulation:

- Plosives: /p/, /b/, /t/, /d/, /k/, /g/ - Fricatives: /f/, /v/, /s/, /z/ - Affricates: /ts/, /tʃ/ - Nasals: /m/, /n/, /ŋ/ - Laterals: /l/ - Trills: /r/ - Bilabials: /p/, /b/, /m/ - Labiodentals: /f/, /v/ - Alveolars: /t/, /d/, /n/ - Velars: /k/, /g/, /ŋ/

Vowel classification
Classified by tongue position and lip rounding:

Features of Chinese phonetics

- The four basic tones of Mandarin: yinping, yangping, shangsheng, qusheng - Example: ma1 (mother), ma2 (hemp), ma3 (horse), ma4 (scold) - Initials: 21 basic initials - Finals: 39 basic finals

Phonology (Phonology)

Phonology studies the structure and rules of sound systems, focusing on the function of sounds in a particular language.

Phoneme (Phoneme)

Allophone (Allophone)

Phonological rules

Applications in NLP


Morphology (Morphology)

Morphology studies the internal structure of words and word-formation rules, and is the basis of lexical-level analysis.

Basic concepts

Morpheme (Morpheme)

Roots, affixes, and stems

- Example: in "unhappiness", "happy" is the root - Prefix: un-, re-, pre- - Suffix: -ness, -tion, -ly - Infix: relatively rare, as in Tagalog

Word-formation methods

Derivation (Derivation)

- happy → unhappy (adding a negative prefix) - happy → happiness (nominalizing suffix) - teach → teacher (agentive suffix)

Compounding (Compounding)

- blackboard (black + board) - laptop (lap + top) - Diannao (computer), from dian (electric) + nao (brain) - Shouji (mobile phone), from shou (hand) + ji (machine)

Inflection (Inflection)

Characteristics of Chinese morphology

The concept of a word

Word-formation methods

- Modifier-head: Huoche (huo+che) - Verb-object: Siji (si+ji) - Subject-predicate: Dizhen (di+zhen) - Coordinate: Pengyou (peng+you) - Verb reduplication: kan-kan, zou-zou - Adjective reduplication: honghong-de, manman-de - Noun reduplication: renren, shishi

Flexible use of parts of speech

Applications in NLP

Stemming (Stemming)

Lemmatization (Lemmatization)

Chinese word segmentation

Part-of-speech tagging


Syntax (Syntax)

Syntax studies the structure and organization of sentences and is central to understanding language grammar.

Basic concepts

Phrase structure

- Example: that interesting book - Example: run quickly - Example: on the table - Example: very beautiful

Sentence constituents

Syntactic parsing methods

Phrase structure grammar

Dependency grammar

- 'Zhui' (a Chinese character meaning 'chase') is the root node - 'Xiaomao' (the kitten) depends on 'Zhui' (to chase) with a subject-predicate relation - 'Laoshu' (the mouse) depends on 'Zhui' (to chase) with a verb-object relation - 'Xiao' (a Chinese character meaning 'small') depends on 'Mao' (cat) with an attributive-head relation

Tree representation



        追

       /  \

     小猫   老鼠

     /

    小

Characteristics of Chinese syntax

Word order characteristics

Special constructions

- Example: I put the book on the table - Example: the book was put on the table by me - Example: there is a book on the table

Degree of grammaticalization

Challenges of syntactic parsing

Ambiguity problems

- Analysis 1: I saw the person with a telescope - Analysis 2: I saw a person who was holding a telescope

Long-distance dependencies

Ellipsis

Applications in NLP

Syntactic parsers

Syntactic treebanks

Application tasks


Semantics (Semantics)

Semantics studies the meaning of language and is the core of natural language understanding.

Basic concepts

Lexical semantics

Semantic relations

- Complete synonymy: relatively rare - Near-synonyms: happy-glad, big-huge - Complementary antonyms: dead-alive, male-female - Gradable antonyms: cold-hot, big-small - Relational antonyms: teacher-student, buy-sell - Hypernyms: animal, color - Hyponyms: dog, cat (hyponyms of animal)

Sentence semantics

Proposition (Proposition)

- Agent: Xiaoming - Action: read - Patient: book - Location: library

Semantic Roles (Semantic Roles)

Argument Structure (Argument Structure)

- Giver (agent) - Recipient (dative) - Thing given (patient)

Semantic representation

Logical representation

Frame Semantics (Frame Semantics)

Concept graphs

Semantic ambiguity

Lexical ambiguity

Structural ambiguity

Pragmatic ambiguity

Applications in NLP

Lexical semantic resources

Semantic analysis tasks

Application Areas


Pragmatics (Pragmatics)

Pragmatics studies the use of language in specific communicative situations and focuses on the influence of context on meaning.

Basic concepts

Context (Context)

Speech Act Theory (Speech Act Theory)

Types of illocutionary acts

Pragmatic phenomena

Deixis (Deixis)

Presupposition (Presupposition)

Implicature (Implicature)

- B's answer violates the maxim of quantity, implying unwillingness to tell the time

Cooperative Principle (Cooperative Principle)

Characteristics of Chinese pragmatics

Politeness strategies

High-context culture

Face theory

Applications in NLP

Dialogue systems

Sentiment analysis

Machine translation


Features of the Chinese language

As a representative of the Sinitic language family, Chinese has unique linguistic features that bring special challenges and opportunities to Chinese NLP.

The necessity of word segmentation

No space delimiters

The concept of a word is complex

Segmentation ambiguity

Combinatorial ambiguity

- Incorrect segmentation: jiehunde/heshang/weijiehunde - Correct segmentation: jiehunde/he/shangwei/jiehunde

Overlapping ambiguity

- Scheme 1: Changchunshi/Changchun/yaodian - Scheme 2: Changchun/shizhang/chunyaodian

True ambiguity

- Scheme 1: pingpangqiupai/maiwanle - Scheme 2: pingpangqiu/paimai/wanle

Word segmentation methods

Dictionary-based methods

Statistical methods

Deep learning based methods


Chinese characters, vocabulary, and grammatical structures

Features of Chinese characters

Square-block character structure

Pictographic and ideographic features

Polyphony and polysemy

Vocabulary features

Rich word-formation patterns

- Compound type: 'diannao' (computer), 'shouji' (mobile phone) - Affixed type: 'diyi' (first), 'laoshi' (teacher)

High semantic transparency of vocabulary

Flexible conversion of parts of speech

- Noun: 'he shui' - Verb: 'shui tian' - Adjective: 'shuiping hen shui' (colloquial)

Grammatical structure features

Relatively fixed word order

Diverse grammatical devices

Low degree of grammaticalization


Special challenges of Chinese NLP

Text preprocessing challenges

Difficulty of word segmentation

Simplified-traditional conversion

Encoding issues

Handling language variants

Dialectal differences

Register differences

Usage in Hong Kong, Macao, and Taiwan

Semantic understanding challenges

Strong context dependence

Rich cultural connotations

Flexible language use


The hierarchical structure of text

As the carrier of language, text has multi-level structural features. Understanding these hierarchies is crucial for designing effective NLP systems.

Character level (Character Level)

Basic units

Definition of character

Character type

Character-level processing

Encoding processing

Character sequence models

Application scenarios


Word level (Word Level)

Definition of word

The concept of a word

Word types

Word representation

One-hot Encoding

Word Embeddings

- CBOW: predicts the center word from context - Skip-gram: predicts context from the center word

Contextual word vectors

Lexical relations

Semantic relations

Morphological relations

Distributional relations

Word-level processing

Word normalization

Stop-word filtering

Low-frequency word handling

Application scenarios

Phrase level (Phrase Level)

Definition of phrase

Basic concepts

Phrase types

- Example: 'yi ben youqu de shu' (an interesting book) - Example: 'zhengzai renzhen yuedu' (reading carefully) - Example: on the table - Example: 'feichang piaoliang' (very beautiful)

Phrase identification

Rule-based methods

Statistical methods

Deep learning based methods

Phrase representation

Composition of word vectors

Phrase embeddings

Application scenarios

Sentence level (Sentence Level)

Definition of sentence

Basic concepts

Sentence types

Sentence representation

Composition of word vectors

Sentence embeddings

Syntactic structure representation

Sentence-level processing

Sentence segmentation

Sentence compression

Sentence paraphrasing

Application scenarios

Discourse level (Discourse Level)

Discourse structure

Basic concepts

Cohesion devices

Discourse relations

Discourse analysis

Coreference resolution

Topic modeling

Sentiment trajectory analysis

Discourse representation

Global vector

Graph representation

Memory networks

Application scenarios


Language models and probabilistic grammars

Fundamentals of language models

Basic concepts

Definition of language model

Application Areas

N-gram model

Markov assumption

Model training

Limitations

Neural network language models

Feed-forward neural network model

Basic structure

Advantage

Recurrent neural network models

RNN structure

LSTM/GRU

Transformer models

Self-attention mechanism

Pretrained language models

Probabilistic grammar models

Probabilistic context-free grammars

Basic concepts

Parameter estimation

Apply

Dependency grammar models

Probabilistic dependency grammars

Parsing algorithms


Language resources and annotation

Corpus resources

General corpora

English corpora

Chinese corpora

Annotated corpora

Part-of-speech tagged corpora

Syntactic treebanks

Semantically annotated corpora

Lexical semantic resources

English resources

WordNet

FrameNet

Chinese resources

HowNet

Tongyici Cilin (a Chinese synonym thesaurus)

Evaluation datasets

Standard task datasets

Word segmentation and part-of-speech tagging

Syntactic parsing

Semantic analysis

Applied task datasets

Text classification

Sentiment analysis

Question answering systems


Interdisciplinary research of linguistics and NLP

Computational linguistics

Research areas

Speech technology

Grammatical analysis

Semantic computing

Cognitive linguistics and NLP

Language acquisition modeling

Child language acquisition

Neurocognitive models

Language evolution modeling

Computational simulation

Multi-Agent Systems

Sociolinguistics and NLP

Handling Language Variation

Dialect Identification

Sociolinguistic Features

Language Policy Support

Language Resource Construction

Language Education Technology