Natural Language Processing Components

Hello There,
In previous post I have talked about some basic about Natural language Processing and why it is difficult to understand for machines.
In this post I’m moving forward and will talk about some basic component of NLP. So here it is…

Components of NLP:
Mainly there are two component of NLP namely
     1.   Natural Language Understanding (NLU) and
     2.  Natural Language Generation (NLG)

So what are these actually, let’s take a look on that…
The first one is Natural language Understanding or we can say NLU, as name says “understanding” the main thing to do is to understand the input given by user as a part of natural language. It deals with machine reading comprehension à ability to read text, to do process on it, and understand its meaning. It is involved with mapping the given inputs (let’s take plain text as input) in useful representations and analyzing the different aspects of the language.
Now about second one Natural Language Generation (NLG). Main task of this component is to generate meaningful output or parser in form of natural language from some internal representing according to given input.
It includes :-
     1.  Text planning : - retrieving the relevant content from database. Here database can be includes vocabulary, sentences, knowledge, sample data and many more.
     2.  Sentence planning : - we get our content using text planning now next step to do is choosing required words and forming meaningful sentence setting the words in right grammatical way.
     3.  Text realization :- we have all the thing need to create actual text in humans language.

To understand all of these take example of Eliza. You may heard about it. It is the most popular AI bot of its time, developed at MIT in the mid-1960.
It’s not perfectly understand or not understand at all meaning of input sentence and it is neither pass the Turing test but it is still acknowledgeable for its behavior of giving replies. It is impressive.  
ELIZA
So how it works? It is very simple to understand. There is a database of words that are called keywords. For each keyword there is an integer value which shows the rank of keyword, a pattern to match against the input and a specification of the output. So when user type sentence it separate the words and look for keyword which is similar to database’s keyword (we can say that here program try to understand meaning of sentence. The first component NLU). If there is more than one keyword found it pick the one with highest rank value and according to that give output which is already In database (here it is actually generates the answer. The second component NLG). And if keyword not found in database it simply generate the statements like “tell me more” or “Go on” etc…
So that’s all for this post. See you guys in my next post…

Comments

  1. This is really helpful and informative, as this gave me more insight to create more ideas and solutions for my plan. Excellent and very cool idea and great content of different kinds of the valuable information's.
    Chatbot Company in Dubai
    Chatbot Companies in Dubai
    Chatbot Development
    Chatbot Companies
    AI Chatbot Development
    Chatbot Companies in UAE
    Chatbot Company in Chennai
    Chatbot Company in Mumbai
    AI Chatbot Companies
    Chatbot Development Companies

    ReplyDelete
    Replies
    1. Natural Language Processing (NLP) is a field of artificial intelligence that focuses on the interaction between computers and humans through natural language. NLP encompasses various tasks and components that work together to enable computers to understand, interpret, and generate human language. Here are the primary components of NLP:

      1. Tokenization
      Definition: Tokenization is the process of breaking down text into smaller units, such as words, phrases, or sentences.
      Use Cases:

      Text preprocessing for various NLP tasks.
      Segmentation of sentences in language models.
      Example:
      Input: "ChatGPT is amazing!"
      Output: ["ChatGPT", "is", "amazing", "!"]
      2. Morphological Analysis
      Definition: This involves the analysis of the structure of words to understand and identify the various components (morphemes) such as roots, prefixes, and suffixes.
      Use Cases:

      Understanding word forms and variations.
      Lemmatization and stemming.
      Example:
      Input: "running"
      Output: root: "run", suffix: "ing"
      3. Part-of-Speech (POS) Tagging
      Definition: Assigning parts of speech to each word in a sentence, such as nouns, verbs, adjectives, etc.
      Use Cases:

      Deep Learning Final Year Projects

      Machine Learning Final Year Projects

      artificial intelligence projects for students


      Grammar checking.
      Syntactic parsing.
      Example:
      Input: "ChatGPT is amazing!"
      Output: [("ChatGPT", "NNP"), ("is", "VBZ"), ("amazing", "JJ")]
      4. Named Entity Recognition (NER)
      Definition: Identifying and classifying named entities (e.g., people, organizations, locations) within the text.
      Use Cases:

      Information extraction.
      Knowledge graph construction.
      Example:
      Input: "ChatGPT was developed by OpenAI."
      Output: [("ChatGPT", "Product"), ("OpenAI", "Organization")]
      5. Syntactic Parsing
      Definition: Analyzing the grammatical structure of a sentence to generate a parse tree.
      Use Cases:

      Delete
  2. I am a Single full time dad on disability getting no help from their moms. It a struggle every day. My boys are 15 and 9 been doing this by myself for 8 years now it’s completely drained all my savings everything . These guys are the present day ROBIN HOOD. Im back on my feet again and my kids can have a better life all thanks to the blank card i acquired from skylink technology. Now i can withdraw up too 3000 per day Contact them as well on Mail: skylinktechnes@yahoo.com   or   whatsspp/telegram: +1(213)785-1553

    ReplyDelete

Post a Comment