SlideShare a Scribd company logo
Syntax and Semantics
Introduction to NLP
• Natural Language Processing (NLP) enables machines to process human
languages.
• Grammar is essential to build systems that parse sentences and identify
Parts of Speech (POS).
• Understanding grammar helps in knowledge representation.
Components of a Language
• Lexicon: Vocabulary of the language.
• Categorization: Grouping words (e.g., Nouns, Verbs).
• Grammar Rules: Define sentence structures.
Parsing and Syntactic Tree
• Parsing applies grammar rules to analyze a sentence's structure.
• Syntactic trees visually represent sentence structures using nodes and
categories.
• Example: 'The large cat eats the small rat' can be broken down into
phrases.
Ambiguity in Language
• Lexical Ambiguity: Words with multiple meanings (e.g., 'glasses' can mean
spectacles or drinking glasses).
• Structural Ambiguity: Sentences with multiple interpretations (e.g., 'I saw
the boy with the telescope').
Control and Conditional Statements
in C
Introduction to Conditional Statements
• Conditional statements evaluate a condition as true or false.
• They control the program's flow and are also called control statements.
Types of Conditional Statements
• Simple if Statement
• If-Else Statement
• Nested If-Else Statement
• Else If Ladder
Loops in C
• Loops are constructs that repeat code based on conditions.
• Types of Loops:
• - While Loop
• - Do-While Loop
• - For Loop
Repetition Structures in
Programming
Introduction to Repetition Structures
• Repetition structures simplify repeated operations.
• Types include Condition-Controlled and Count-Controlled loops.
Condition-Controlled Loops
• While Loop: Repeats as long as the condition is true.
• Do-While Loop: Executes at least once before evaluating the condition.
Count-Controlled Loops
• For Loop: Iterates a specific number of times.
• Includes Initialization, Condition, and Increment/Decrement steps.
Common Mistakes in Loops
• Infinite Loops: No proper exit condition.
• Neglecting Initialization or Updates of loop variables.
• Misplacing statements inside the loop.

More Related Content

PPTX
Natural Language Processing
Varunjeet Singh Rekhi
 
PDF
Natural Language Processing Course in AI
SATHYANARAYANAKB
 
PPTX
gdhfjdhjcbdjhvjhdshbajhbvdjbklcbdsjhbvjhsdbvjjv
samjohnson7350
 
PPT
INFO-2950-Languages-and-Grammars.ppt
LamhotNaibaho3
 
PPTX
https://www.slideshare.net/amaresimachew/hot-topics-132093738
Assosa University
 
PDF
The Mystery of Natural Language Processing
Mahmood Aijazi, MD
 
PPTX
C programming slide day 01 uploadd by md abdullah al shakil
Zenith SVG
 
PPTX
Artificial Intelligence Notes Unit 4
DigiGurukul
 
Natural Language Processing
Varunjeet Singh Rekhi
 
Natural Language Processing Course in AI
SATHYANARAYANAKB
 
gdhfjdhjcbdjhvjhdshbajhbvdjbklcbdsjhbvjhsdbvjjv
samjohnson7350
 
INFO-2950-Languages-and-Grammars.ppt
LamhotNaibaho3
 
https://www.slideshare.net/amaresimachew/hot-topics-132093738
Assosa University
 
The Mystery of Natural Language Processing
Mahmood Aijazi, MD
 
C programming slide day 01 uploadd by md abdullah al shakil
Zenith SVG
 
Artificial Intelligence Notes Unit 4
DigiGurukul
 

Similar to inbound6725857288028900791.pptxjjjjjjjjjj (20)

PPTX
natural language processing
sunanthakrishnan
 
PPTX
Natural Language Processing in AI
Saurav Shrestha
 
PDF
nlp-150531043309-lva1-app6891_3.pdf
shakeelAsghar6
 
PPT
lecture_15.pptffffffffffffffffffffffffff
RAtna29
 
PPTX
AI UNIT-3 FINAL (1).pptx
prakashvs7
 
PPTX
Artificial Intelligence_NLP
ThenmozhiK5
 
PPTX
naturallanguageprocessingnlp-231215172843-839c05ab.pptx
baocongle204
 
PPTX
Natural language processing.pptx
RiteshKumar66208
 
PPTX
6. describing syntax and semantics
Zambales National High School
 
PPTX
nlp-01.pptxvvvffffffvvvvvfeddeeddffffffffff
SushantVyas1
 
PPTX
Natural Language Processing (NLP)
Abdullah al Mamun
 
PPT
principles of programmining language.ppt
swatipatil963455
 
PDF
Natural language processing module 1 chapter 1
shreekd2004
 
PPT
SLoSP-2007-1 natural language processing.ppt
NarendraChahar1
 
PPT
SLoSP-2007-1statisticalstatisticalstatistical.ppt
smartashammari
 
PPTX
natural language processing of artificial
madhurrajverma
 
PPT
computer Languages and Grammars.pptx and
kennethnamonye77
 
PDF
syntaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.pdf
MadhuCK2
 
PPTX
Natural Language Processing (NLP).pptx
SHIBDASDUTTA
 
natural language processing
sunanthakrishnan
 
Natural Language Processing in AI
Saurav Shrestha
 
nlp-150531043309-lva1-app6891_3.pdf
shakeelAsghar6
 
lecture_15.pptffffffffffffffffffffffffff
RAtna29
 
AI UNIT-3 FINAL (1).pptx
prakashvs7
 
Artificial Intelligence_NLP
ThenmozhiK5
 
naturallanguageprocessingnlp-231215172843-839c05ab.pptx
baocongle204
 
Natural language processing.pptx
RiteshKumar66208
 
6. describing syntax and semantics
Zambales National High School
 
nlp-01.pptxvvvffffffvvvvvfeddeeddffffffffff
SushantVyas1
 
Natural Language Processing (NLP)
Abdullah al Mamun
 
principles of programmining language.ppt
swatipatil963455
 
Natural language processing module 1 chapter 1
shreekd2004
 
SLoSP-2007-1 natural language processing.ppt
NarendraChahar1
 
SLoSP-2007-1statisticalstatisticalstatistical.ppt
smartashammari
 
natural language processing of artificial
madhurrajverma
 
computer Languages and Grammars.pptx and
kennethnamonye77
 
syntaxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.pdf
MadhuCK2
 
Natural Language Processing (NLP).pptx
SHIBDASDUTTA
 
Ad

More from EricColubanAlipan (15)

PPTX
PDFen.pptxffgffcgvvvccffggvvfftggggggggg
EricColubanAlipan
 
PPTX
Syntax_Control_Repetition_Slides.pptxggggggggfg
EricColubanAlipan
 
PPTX
inbound4289876492495941544.pptxbhhhhjjjj
EricColubanAlipan
 
PPTX
Understanding Syntax and Semanti (1).pptx
EricColubanAlipan
 
PPTX
PDFen(1).pptxhhhhhhhhhhhhhhhhjjjjgghhhhj
EricColubanAlipan
 
PPTX
Hcucydydyeufudydufudufudududydududududud
EricColubanAlipan
 
PPTX
Jcudydufufufudjfufududjfjfhdhxjcjcufufjfu
EricColubanAlipan
 
PPTX
Chapter-2-2 (1).pptxghhhgfffghhhbgdffgggff
EricColubanAlipan
 
PPTX
Agromet-Station.pptxvbggggghhhhdxccvvbbvvvccc
EricColubanAlipan
 
PPTX
Fracture toughness and fatigue and engineering materials
EricColubanAlipan
 
PPTX
Chapter-1-2-Periodic-Table.pptxhshsjssks
EricColubanAlipan
 
PPTX
Chapter-2.pptxbsjsjsjjsjssjsjsjjsjsjsjsj
EricColubanAlipan
 
PPTX
BSABE: Introduction in material of engineering
EricColubanAlipan
 
PPTX
"The United Nations: Promoting Global Cooperation and Peace"
EricColubanAlipan
 
PPT
Lec-1-Site-Selection (1).ppt("Unlocking Success: A Comprehensive Guide to Str...
EricColubanAlipan
 
PDFen.pptxffgffcgvvvccffggvvfftggggggggg
EricColubanAlipan
 
Syntax_Control_Repetition_Slides.pptxggggggggfg
EricColubanAlipan
 
inbound4289876492495941544.pptxbhhhhjjjj
EricColubanAlipan
 
Understanding Syntax and Semanti (1).pptx
EricColubanAlipan
 
PDFen(1).pptxhhhhhhhhhhhhhhhhjjjjgghhhhj
EricColubanAlipan
 
Hcucydydyeufudydufudufudududydududududud
EricColubanAlipan
 
Jcudydufufufudjfufududjfjfhdhxjcjcufufjfu
EricColubanAlipan
 
Chapter-2-2 (1).pptxghhhgfffghhhbgdffgggff
EricColubanAlipan
 
Agromet-Station.pptxvbggggghhhhdxccvvbbvvvccc
EricColubanAlipan
 
Fracture toughness and fatigue and engineering materials
EricColubanAlipan
 
Chapter-1-2-Periodic-Table.pptxhshsjssks
EricColubanAlipan
 
Chapter-2.pptxbsjsjsjjsjssjsjsjjsjsjsjsj
EricColubanAlipan
 
BSABE: Introduction in material of engineering
EricColubanAlipan
 
"The United Nations: Promoting Global Cooperation and Peace"
EricColubanAlipan
 
Lec-1-Site-Selection (1).ppt("Unlocking Success: A Comprehensive Guide to Str...
EricColubanAlipan
 
Ad

Recently uploaded (20)

PDF
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
Hyogeun Oh
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PPT
SCOPE_~1- technology of green house and poyhouse
bala464780
 
PPTX
Practice Questions on recent development part 1.pptx
JaspalSingh402
 
PDF
ETO & MEO Certificate of Competency Questions and Answers
Mahmoud Moghtaderi
 
PPTX
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx
dodultrongaming
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PDF
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
demidovs1
 
PDF
Introduction to Data Science: data science process
ShivarkarSandip
 
PPTX
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
VinayB68
 
PDF
6th International Conference on Artificial Intelligence and Machine Learning ...
gerogepatton
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PPTX
anatomy of limbus and anterior chamber .pptx
ZePowe
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
PPTX
AgentX UiPath Community Webinar series - Delhi
RohitRadhakrishnan8
 
PPT
Ppt for engineering students application on field effect
lakshmi.ec
 
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
quakeplayz54
 
PDF
Structs to JSON How Go Powers REST APIs.pdf
Emily Achieng
 
오픈소스 LLM, vLLM으로 Production까지 (Instruct.KR Summer Meetup, 2025)
Hyogeun Oh
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
SCOPE_~1- technology of green house and poyhouse
bala464780
 
Practice Questions on recent development part 1.pptx
JaspalSingh402
 
ETO & MEO Certificate of Competency Questions and Answers
Mahmoud Moghtaderi
 
ANIMAL INTERVENTION WARNING SYSTEM (4).pptx
dodultrongaming
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
BRKDCN-2613.pdf Cisco AI DC NVIDIA presentation
demidovs1
 
Introduction to Data Science: data science process
ShivarkarSandip
 
MET 305 MODULE 1 KTU 2019 SCHEME 25.pptx
VinayB68
 
6th International Conference on Artificial Intelligence and Machine Learning ...
gerogepatton
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
anatomy of limbus and anterior chamber .pptx
ZePowe
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
AgentX UiPath Community Webinar series - Delhi
RohitRadhakrishnan8
 
Ppt for engineering students application on field effect
lakshmi.ec
 
Lesson 3_Tessellation.pptx finite Mathematics
quakeplayz54
 
Structs to JSON How Go Powers REST APIs.pdf
Emily Achieng
 

inbound6725857288028900791.pptxjjjjjjjjjj

  • 2. Introduction to NLP • Natural Language Processing (NLP) enables machines to process human languages. • Grammar is essential to build systems that parse sentences and identify Parts of Speech (POS). • Understanding grammar helps in knowledge representation.
  • 3. Components of a Language • Lexicon: Vocabulary of the language. • Categorization: Grouping words (e.g., Nouns, Verbs). • Grammar Rules: Define sentence structures.
  • 4. Parsing and Syntactic Tree • Parsing applies grammar rules to analyze a sentence's structure. • Syntactic trees visually represent sentence structures using nodes and categories. • Example: 'The large cat eats the small rat' can be broken down into phrases.
  • 5. Ambiguity in Language • Lexical Ambiguity: Words with multiple meanings (e.g., 'glasses' can mean spectacles or drinking glasses). • Structural Ambiguity: Sentences with multiple interpretations (e.g., 'I saw the boy with the telescope').
  • 6. Control and Conditional Statements in C
  • 7. Introduction to Conditional Statements • Conditional statements evaluate a condition as true or false. • They control the program's flow and are also called control statements.
  • 8. Types of Conditional Statements • Simple if Statement • If-Else Statement • Nested If-Else Statement • Else If Ladder
  • 9. Loops in C • Loops are constructs that repeat code based on conditions. • Types of Loops: • - While Loop • - Do-While Loop • - For Loop
  • 11. Introduction to Repetition Structures • Repetition structures simplify repeated operations. • Types include Condition-Controlled and Count-Controlled loops.
  • 12. Condition-Controlled Loops • While Loop: Repeats as long as the condition is true. • Do-While Loop: Executes at least once before evaluating the condition.
  • 13. Count-Controlled Loops • For Loop: Iterates a specific number of times. • Includes Initialization, Condition, and Increment/Decrement steps.
  • 14. Common Mistakes in Loops • Infinite Loops: No proper exit condition. • Neglecting Initialization or Updates of loop variables. • Misplacing statements inside the loop.