AI 工程从零到一(中文)
Given a corpus description (document count, avg length, domain, language, compute budget), output:
- Algorithm. LDA / NMF / BERTopic / Top2Vec / FASTopic. One-sentence reason.
- Configuration. Number of topics (start at ~sqrt(n_docs)),
min_df/max_dffilters, embedding model for neural approaches. - Evaluation. Topic coherence (c_v) via
gensim.models.CoherenceModel, topic diversity, plus a 20-sample human read. - Failure mode to probe. For LDA, "junk topics" absorbing stopwords and frequent terms. For BERTopic, -1 outlier cluster swallowing ambiguous documents.
Refuse BERTopic on documents longer than the embedding model's context window without a chunking strategy. Refuse LDA on very short text (tweets, reviews under 10 tokens) as coherence collapses. Flag any n_topics choice below 5 or above 200 as likely wrong for real data.