document-classifier
Logic for categorizing documents into subjects based on keyword matching.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- document-classifier
- description
- Logic for categorizing documents into subjects based on keyword matching.
03 SKILL.md 正文
Document Classifier Skill
This skill outlines a strategy for classifying documents into predefined categories using keyword frequency and priority.
Subjects and Keywords
- LLM (Large Language Models)
- Keywords: LLM, transformer, GPT, pre-training, inference, attention mechanism, BERT, language model.
- Trapped Ion and Quantum Computing
- Keywords: trapped ion, quantum computer, qubit, entanglement, Paul trap, laser cooling, gate fidelity, Rydberg.
- Black Hole
- Keywords: black hole, event horizon, Schwarzschild, Hawking radiation, gravitational waves, accretion disk, singularity.
- DNA
- Keywords: DNA, genome, sequencing, nucleotide, CRISPR, polymerase, genetic, chromosome, protein synthesis.
- Music History
- Keywords: music, composer, symphony, baroque, classical era, opera, jazz, rhythmic, harmony, melody.
Classification Logic
- Extraction: Extract the first 1000-2000 characters of the document.
- Scoring: Count occurrences of keywords for each category.
- Tie-breaking: If no keywords match or there is a tie, use the "last folder" rule as per user instruction (in this case, Music History if others fail, or simply the most likely fit).
- Verification: Check the title or abstract specifically if the score is low.
Implementation Tip
Use a script or a loop to process files in batches to save time.
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.