Semantic analysis
Semantic analysis is the part of language processing that works out what words, sentences and texts mean, as opposed to how they are grammatically structured.
Understanding language involves two separate jobs. Syntactic analysis works out the structure of a sentence: which word is the subject, which the verb, which the object. Semantic analysis works out the meaning. In linguistics it is described as relating grammatical structures, from single words up to whole texts, to meanings that do not depend on a particular language. In the sentence the bank approved the loan, syntax identifies the parts; semantics recognises that this bank is a lender, not a riverside.
In natural language processing, semantic analysis is an umbrella for several tasks. Word sense disambiguation picks the right meaning of an ambiguous word. Semantic role labelling works out who did what to whom. Semantic similarity measures how close two pieces of text are in meaning. Sentiment analysis, which judges whether text is positive or negative, is often grouped here too. Progress on these tasks has been tracked by SemEval, a series of shared evaluations that grew out of Senseval, first held at Sussex in England in 1998 and organised under the Association for Computational Linguistics.
An influential statistical approach is latent semantic analysis, developed by Scott Deerwester, Susan Dumais, Thomas Landauer and colleagues and described in a 1990 journal article. It rests on the idea that words with similar meanings appear in similar passages. It builds a large table of which words appear in which documents, then compresses it with a mathematical technique called singular value decomposition into a few hundred dimensions. Documents can then be matched on meaning even when they share no words, which is why the method, known in search as latent semantic indexing, helped with synonyms.
Modern language models and embeddings do much of this work implicitly. They represent words and passages as vectors placed so that similar meanings sit close together, which underpins semantic search. The tasks have not disappeared; they are now usually handled inside a larger model rather than by separate tools.
In commercial software, semantic analysis is a loose label. A marketing or customer-feedback tool that promises it might mean topic detection, sentiment scoring, entity extraction or similarity search. Asking which task it performs, and how it was tested, tells you more than the label.
It is the process of working out the meaning of text, covering tasks such as resolving which sense of an ambiguous word is meant, identifying who did what to whom, and measuring how similar two texts are in meaning. It complements syntactic analysis, which deals with grammatical structure. Syntactic analysis determines the grammatical structure of a sentence, such as subject, verb and object. Semantic analysis determines what the sentence means. A sentence can be grammatically correct but meaningless, and the same meaning can be expressed with very different structures. Latent semantic analysis is a statistical technique, published in 1990, that finds relationships between words and documents by compressing a word-document table into a smaller set of dimensions. Words that appear in similar contexts end up close together, so documents can be matched on meaning even without shared words. No. Sentiment analysis is one specific task, judging whether text expresses a positive, negative or neutral opinion. Semantic analysis is the broader work of understanding meaning, which includes sentiment but also word senses, relationships between entities and similarity between texts.Common questions
What is semantic analysis in NLP?
What is the difference between syntactic and semantic analysis?
What is latent semantic analysis?
Is semantic analysis the same as sentiment analysis?
Search for "semantic analysis NLP", "word sense disambiguation", "semantic role labelling" or "latent semantic analysis" to explore the tasks. Reliable sources include SemEval task papers, the ACL Anthology of computational linguistics research and university textbooks on natural language processing. Treat the term in product marketing as a prompt to ask which specific task a tool performs.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.