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.
Text classifier: IPTC topics or your own labels
Two sets of categories
IPTC Media Topics are the 1,059 subjects news agencies file their stories under, kept by the International Press Telecommunications Council and published under CC BY 4.0. They form a tree: each text is first placed under main topics such as economy, health or sport, then under narrower and narrower ones as long as they fit. Or write a list of your own, such as the reasons customers complain or the codes of a study, with a few words on each where its name is not enough.
What the report shows
How many texts each category has, the topics as a map with the narrow ones inside the broad ones, and, with several files, how their subjects differ. Every text is listed with its categories, how probable each one is, and the sentence that shows it most clearly marked, so a doubtful call can be checked by eye.
Getting good categories
Nothing has to be trained, so even ten texts can be sorted. Categories work best when they do not overlap and when a person could tell from the text alone where it belongs. Raise the lowest probability when too much is let in. If you do not know the categories yet, BERTopic topic clustering finds groups first.
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.
Latent semantic analysis: 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.
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.