representations-labeling
Fine-tune BERTopic topic representations, labels, and multi-aspect outputs.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- representations-labeling
- license
- MIT
- metadata
- { "package": "BERTopic", "disco-role": "operating", "parent-skill": "bertopic", "package-version": "0.17.4" }
- description
- Fine-tune BERTopic topic representations, labels, and multi-aspect outputs.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/api-reference.md9.0 KB
- 参考文档references/troubleshooting.md3.4 KB
- 参考文档references/workflows.md2.6 KB
03 SKILL.md 正文
representations-labeling
Use this sub-skill when the task is about post-hoc topic representations, topic labeling, multi-aspect outputs, or prompt-based label generation.
Route here for
KeyBERTInspired,MaximalMarginalRelevance, and other keyword rerankers.PartOfSpeechkeyword refinement with spaCy patterns.ZeroShotClassificationagainst a candidate label list.- Prompt-based labelers:
TextGeneration,OpenAI,LiteLLM,LangChain,Cohere, andLlamaCPP. VisualRepresentationfor image-centered or multimodal topic aspects.- Custom
BaseRepresentationclasses, including chained representation lists and multi-aspect dicts. generate_topic_labels,set_topic_labels,topic_aspects_,get_topic(full=True), andget_topics(full=True)when the question is about labels or aspect views.
Route elsewhere
- Embedding backend selection, model download, or encoder troubleshooting: use the embeddings-backends sub-skill.
- c-TF-IDF, CountVectorizer, online vocabulary updates, or tokenization choices: use the vectorizers-ctfidf sub-skill.
- Core fit/transform/partial_fit, clustering, topic mutation, or topic reduction: use the topic-modeling sub-skill.
- Plotting, dashboarding, and figure interpretation belong in the analysis/visualization sub-skill.
- Save/load, hub publishing, and serialization format choices belong in the serialization sub-skill.
Operating references
references/api-reference.mdreferences/workflows.mdreferences/troubleshooting.mdscripts/smoke_representations.py
Minimal decision flow
- If you only want to soften or diversify the default keywords, start with
KeyBERTInspiredorMaximalMarginalRelevance. - If you need noun-phrase or POS filtering, use
PartOfSpeechand keep a spaCy model available. - If you already know the labels, use
ZeroShotClassificationbefore falling back to generated labels. - If you want generated labels, use
TextGeneration,OpenAI,LiteLLM,LangChain,Cohere, orLlamaCPPwith a prompt that names the label format clearly. - If you need several views of the same topic, use a dict
representation_modelwith aMainpipeline plus aspect names, then inspecttopic_aspects_. - If you need a chained label flow, pass a list of representation models in order; each tuner sees the previous output.
- If you need
KeyBERTInspiredto use the top-level embeddings shortcut, keep it at the top level instead of hiding it inside a list or aspect dict. - If you only need to rename topics after fitting, prefer
generate_topic_labelsorset_topic_labelsrather than retraining.
Verification anchors
- A chained representation model that reranks keywords and then emits a concise topic label.
- Label-setting edge cases for outlier and non-outlier topic ids.
- Multi-aspect topic retrieval through
topic_aspects_and aspect-awaregenerate_topic_labels(aspect=...).
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.