0% found this document useful (0 votes)
60 views18 pages

Intro. To NLP

The document provides an introduction to natural language processing (NLP), including its components, applications, and history. NLP aims to allow interaction with computing devices using human language and access large amounts of information stored as text. Example applications discussed are text analytics, conversational agents, and machine translation.

Uploaded by

Mohamed Adel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views18 pages

Intro. To NLP

The document provides an introduction to natural language processing (NLP), including its components, applications, and history. NLP aims to allow interaction with computing devices using human language and access large amounts of information stored as text. Example applications discussed are text analytics, conversational agents, and machine translation.

Uploaded by

Mohamed Adel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Natural Language Processing

1. Intro to NLP

1
What is NLP?
 Natural Language Processing (NLP) is a field in
Artificial Intelligence (AI) devoted to creating
computers that use natural language as input
and/or output.

2
3
Components of NLP
• Natural Language Understanding
– Mapping the given input in the natural language into a useful
representation.
– Different level of analysis required:
morphological analysis,
syntactic analysis,
semantic analysis,
discourse analysis, …
• Natural Language Generation
– Producing output in the natural language from some internal
representation.
– Different level of synthesis required:
deep planning (what to say),
syntactic generation
• NL Understanding is much harder than NL Generation.
But, still both of them are hard. 4
Why NLP?

 To interact with computing devices using human


(natural) languages. For example,
 Building intelligent robots (AI).

 Enabling voice-controlled operation.

 To access (large amount of) information and


knowledge stored in the form of human languages
quickly.

5
Test for Intelligence – Turing Test
 Alan Turing (1950) proposed a
test of a machine's capability to
perform human-like
conversation.

 A human judge engages in a natural language


conversation with two other parties, one a human
and the other a machine; if the judge cannot
reliably tell which is which, then the machine is said
to pass the test.

6
Early Conversational Programs
• ELIZA (by Joseph Weizenbaum), 1966
– A psychotherapist
– No real understanding; simple pattern-matching
to respond to user input -> canned responses

(my ?x depresses me) (why does your ?x depress you) 5


(life ?x) (why do you say it ?x) 3
(I could ?x) (you could ?x) 2
(because ?x) (that is a good reason) 3
(?x) (tell me more) 0

7
>> Hello.
How do you do. Please state your problem.
>> Men are all alike.
In what way ?
>> They're alwas bugging us about something or other.
I'm not sure I understand you fully.
>> They're always bugging us about something or other.
Can you think of a specific example ?
>> Well, my boyfriend made me come here.
Your boyfriend made you come here ?
>> He says I'm depressed much of the time.
I am sorry to hear that you are depressed.

8
Modern NLP:
NLP in the Days of Big Data
Three trends:
1. An enormous amount of information is now
available in machine readable form as natural
language text (newspapers, web pages, medical
records, financial filings, product reviews, discussion
forums, etc.)
2. Conversational agents are becoming an important
form of human-computer communication
3. Much of human-human interaction is now mediated by
computers via social media

9
NLP Applications
• Three prominent application areas:
 Text analytics/mining (from “unstructured data”)
 Sentiment analysis
 Topic identification
 Digital Humanities (“new ways of doing scholarship that
involve collaborative, transdisciplinary, and computationally
engaged research, teaching, and publishing.”)
 Conversational agents
 Siri, Cortana, Amazon Alexa, Google Assistant
 Chatbots
 Machine translation

10
Text Analytics
• Data-mining of weblogs, microblogs, discussion forums,
user reviews, and other forms of user-generated media.

11
Text Analytics (cont.)
• Typically this involves the extraction of limited kinds of
semantic and pragmatic information from texts
– Entity mentions
– Concept identification
– Sentiment

12
Demo

• Sentiment Analysis with Python NLTK Text Classification


– http://text-processing.com/demo/sentiment/

• Tweet Sentiment Visualization Tool


– https://www.csc2.ncsu.edu/faculty/healey/tweet_viz/tweet_app/

• Concept Extraction
– http://aylien.com/concept-extraction/

13
Conversational Agents
• Combine
– Speech recognition/synthesis
– Question answering
• From the web and from structured information sources (freebase,
dbpedia, yago, etc.)
– Simple agent-like abilities
• Create/edit calendar entries
• Reminders
• Directions
• Invoking/interacting with other apps

14
15
Question Answering
• Traditional information retrieval provides
documents/resources that provide users with what they
need to satisfy their information needs.
• Question answering on the other hand directly provides
an answer to information needs posed as questions.

16
IBM Watson

https://www.youtube.com/watch?v=WFR3lOm_xhE

17
Machine Translation (MT)
• The automatic translation of texts between languages is one of the
oldest non-numerical applications in Computer Science.
• In the past 15 years or so, MT has gone from a niche academic
curiosity to a robust commercial industry.

18

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy