Find the hidden topics of a text by latent semantic analysis, with the words and typical passages of each, the passages that stray, and how close the topics are.
Latent semantic analysis (LSA) of a text
How LSA finds topics
Latent semantic analysis breaks the table of words by passages down into a small number of dimensions. Words used in the same surroundings end up close together even when they never occur side by side, so it captures likeness of meaning that counting misses. Each dimension is read as a topic, and a passage can score on it above or below zero.
What the report shows
The topics with their names, their words and their typical passages, the share of passages each one leads, and the variance it explains. Passages that stray from every topic and topics that overlap are listed, since those are the two places where a model usually needs attention. Maps show the passages and the words, and a draft conclusion sums up the structure.
Compared with LDA
LSA works from how words are spread over the passages, and a passage can lean away from a topic as well as toward it. LDA gives topics made of probabilities, which are easier to explain to a reader. When the topics explain little of the variance, the report says which number of topics to try next.
Topics and clusters
What a pile of documents is about, without reading every one.
LDA topic modeling: Fit a classic LDA model over all your files and get the topics, their words, and the mix of topics in each document.
LDA with topic names: Fit an LDA model to each file on its own and get its topics, each with a short name.
BERTopic topic clustering: Cut the text into passages, cluster them by meaning, and get named topics with their keywords and typical passages.
Number of topics: Fit LDA at each number of topics in a range and see which number the perplexity and coherence scores point to.
Text clustering: Sort a set of short texts into groups of similar content, with the keywords and size of each group.
Principal components of a text: Boil the vocabulary of a text down to a few principal components, see which words pull each one and where each passage falls, and get a name for each component.
Expectation mining: Find what the writers of reviews, comments or survey answers expect and ask for, sorted into types, with how positive and how urgent each one is and the keywords behind it.
Knowledge graph: Get the people, organizations and concepts a text names and the relations between them as a graph you can explore, with the sentence behind every relation, the topics they form and a work outline.
Storylines and what comes next: From a table of posts with timestamps, get the topics, the storylines they form, the moments when the number of posts jumped and what drove each jump, and a projection of what may come next for the most active storylines.
Event timeline: List the events in a text in chronological order, each with its date, place, actors and source sentence, grouped into phases with the turning points marked, and read a short account of how it all unfolded.
Causal relations: Get the cause-and-effect relations a text states outright, each as the cause and the effect in the text's own words with the sentence it came from, drawn as a network and as chains, with a short account of what leads to what.
Position analysis: See who supports, opposes, questions or calls for what in a text, backed by direct quotes, and who is in conflict or working together, drawn as a network with a short summary of the main findings.
Text classification: Sort texts into categories, either the IPTC Media Topics that news agencies use or a list of your own, with how probable each one is and the sentence that shows it.