Syntax analysis (parsing)

Phase 2 of NLP (compiler design) that analyzes grammatical structure.

Syntax analysis, or parsing, is defined as Part 02 of the five phases of NLP compiler design. This process is crucial because semantic analysis relies on mapping the syntactic structure of the text to ensure the logical coherence of relationships between entities, words, and phrases.
Furthermore, Syntax Analysis is offered as a dedicated module by all three major NLP APIs discussed—Google Cloud Natural Language API, Amazon Comprehend, and IBM Watson NLU. The Google Cloud module specifically includes analysis of the grammatical structure of the text, identifying parts of speech, and parsing sentences. The IBM Watson NLU equivalent is termed “Semantic Roles” and involves parsing sentences into subject-action-object form to identify key semantic elements.