ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP2121Natural Language Proce…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP2121

    Artificial Intelligence

    Progress0 / 19 done
    Topics19
    1An Introduction to Artificial Intelligence and its applications towards Knowledge Based Systems2Introduction to Reasoning and Knowledge Representation
    3Informed searching4Uninformed searching5Heuristics in Problem Solving6Local searching algorithms7Minimax algorithm8Alpha-beta pruning9Game-playing in AI
    10General Problem Solver11ELIZA12Student13Macsyma14Learning from examples15Artificial Neural Networks (ANN)16Natural Language Processing17Recent trends and applications of AI algorithms18Python programming for AI19Implementation of AI techniques in Python
    2 min read
    Topic 16 of 19
    Topic Study Note Illustration
    16

    Natural Language Processing

    Natural Language Processing (NLP) is a subfield of Artificial Intelligence (AI) that focuses on enabling computers to understand, interpret, generate, and interact with human languages like English,...

    🌐 Natural Language Processing (NLP)

    Natural Language Processing (NLP) is a subfield of Artificial Intelligence (AI) that focuses on enabling computers to understand, interpret, generate, and interact with human languages like English, Hindi, or any spoken/written language.


    🧠 Why NLP?

    Humans communicate using natural language, but computers work with numbers and structured data. NLP bridges the gap between human language and machine understanding, allowing AI systems to:

    • Read and understand text
    • Respond to human queries
    • Translate between languages
    • Summarize or generate content

    πŸ”§ Key Tasks in NLP

    Task What it Does Example
    Tokenization Breaks text into words or sentences "Hello, world!" β†’ ["Hello", ",", "world", "!"]
    Part-of-Speech Tagging Identifies grammatical parts of speech "dog" β†’ noun, "run" β†’ verb
    Named Entity Recognition (NER) Identifies entities like names, locations, etc. "John lives in Paris" β†’ ["John" β†’ person, "Paris" β†’ location]
    Sentiment Analysis Detects sentiment or emotion "I love this movie!" β†’ Positive
    Machine Translation Translates between languages "Bonjour" β†’ "Hello"
    Text Summarization Produces a shorter version of a document Long article β†’ Short summary
    Question Answering Finds answers from text or databases "Who is the president of the USA?"
    Speech Recognition Converts spoken language to text Audio β†’ Text

    βš™οΈ How NLP Works

    1. Text Preprocessing:

      • Clean and prepare the text.
      • Involves steps like tokenization, stemming, lemmatization, stop-word removal.
    2. Feature Extraction:

      • Convert text to numbers using methods like:

        • Bag of Words
        • TF-IDF (Term Frequency - Inverse Document Frequency)
        • Word Embeddings (e.g., Word2Vec, GloVe)
        • Transformers (e.g., BERT, GPT)
    3. Modeling:

      • Use Machine Learning or Deep Learning models:

        • Traditional: Naive Bayes, SVM
        • Modern: RNNs, LSTMs, Transformers
    4. Output/Inference:

      • The model makes predictions or performs actions based on the text.

    πŸ” Real-World Applications of NLP

    • Chatbots & Virtual Assistants (e.g., Siri, Alexa, ChatGPT)
    • Search Engines (e.g., Google)
    • Language Translation (e.g., Google Translate)
    • Spam Filtering
    • Grammar & Writing Tools (e.g., Grammarly)
    • Sentiment Analysis for social media or reviews
    • Voice Assistants in customer service

    πŸ“ˆ Popular NLP Tools & Libraries

    • NLTK (Natural Language Toolkit) – great for academic and beginner-level tasks
    • spaCy – fast and industrial-strength NLP
    • Transformers (by Hugging Face) – state-of-the-art models like BERT, GPT
    • TextBlob – beginner-friendly, easy-to-use
    • OpenAI GPT, BERT, RoBERTa – pre-trained transformer models

    πŸ§ͺ Example

    Input: "I had a terrible experience with the service."

    Output from a sentiment analysis model: Negative


    ← Previous topic 15
    Artificial Neural Networks (ANN)
    Next topic 17 β†’
    Recent trends and applications of AI algorithms

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    2mremaining
    384words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Artificial Intelligence