0% found this document useful (0 votes)
9 views9 pages

NLP and Python

The document discusses Natural Language Processing (NLP) using Python, highlighting various libraries such as NLTK, Gensim, and SpaCy. It covers the role of machine learning in transforming unstructured text into usable data, as well as the limitations of NLP including bias and dependency on large datasets. Additionally, it emphasizes the importance of Python functions in enhancing code structure and readability for NLP applications.

Uploaded by

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

NLP and Python

The document discusses Natural Language Processing (NLP) using Python, highlighting various libraries such as NLTK, Gensim, and SpaCy. It covers the role of machine learning in transforming unstructured text into usable data, as well as the limitations of NLP including bias and dependency on large datasets. Additionally, it emphasizes the importance of Python functions in enhancing code structure and readability for NLP applications.

Uploaded by

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

Natural Language

Processing
-NLP and Python-
Dr. Fatma Ben Mesmia
[email protected]
NLP and Python

> Natural Language Toolkit (NLTK)


> Gensim
> SpaCy
> CoreNLP
> TextBlob
> AllenNLP
> Polyglot
> Scikit-Learn

2
Python conditionals, functions

• Python functions provide an efficient and Example:


organized approach to developing natural
def greet(name):
language understanding applications return f"Hello,
{name}!"
• functions enhance code structure, user_name = "Alice"
message = greet(user_name)
readability, and maintainability print(message)
• With Python’s versatile ecosystem, the
potential for NLP innovation is boundless
3
NLP tasks

• NLP tasks in syntax, semantics, and pragmatics


>> See Introduction slides

4
Role of Machine Learning

Machine learning for NLP helps data analysts


turn unstructured text into usable data and
insights

5
Ambiguity and uncertainty in language

• Ambiguity and uncertainty in language

>> See Introduction slides

6
NLTK library

Some common applications of the NLTK

Text preprocessing

NER
recognition

7
Limitations of NLP

• NLP limitations: Bias in language/data, e.g.,


gender/racial bias in training
• Dependency on large data: Challenging to
obtain, may cause inaccuracies
• Human input needed: Correct errors,
especially with rare cases not well-
represented in data

8
Thank You!

Big Data and Data Analytics 9

You might also like