We have already seen the NLU and NLG definitions, details, and differences in Chapter 3, Understanding Structure of Sentences. In this section, we are comparing these two subareas of NLP in terms of an AI-enabled application.
Comparing NLU and NLG
Natural language understanding
Earlier, we have seen that NLU is more about dealing with an understanding of the structure of the language, whether it is words, phrases, or sentences. NLU is more about applying various ML techniques on already generated NL. In NLU, we focus on syntax as well as semantics. We also try to solve the various types of ambiguities related to syntax and semantics. We have seen the lexical ambiguity, syntactic ambiguity, semantic ambiguity, and pragmatics...