--- license: mit language: zh library_name: transformers pipeline_tag: text-classification base_model: BAAI/bge-small-zh-v1.5 datasets: - ulises-c/SocratDataset metrics: - accuracy tags: - text-classification - education - socratic-teaching - bert - kele --- # Socratic teaching classifiers on bge-small-zh (Chinese, clean retrains) Two small classifiers from the project "Reproducing and Extending KELE" (https://github.com/ulises-c/csen-346). Each reads a tutoring dialogue up to the student's latest turn and predicts where the teacher should be next in the SocRule framework of the KELE paper. Both were fine-tuned from `BAAI/bge-small-zh-v1.5` on the training part of the Chinese [SocratDataset](https://huggingface.co/datasets/ulises-c/SocratDataset) (90/10 split by dialogue, seed 42) and tested on the 4,304 turns of its 681 test dialogues. | Folder | Predicts | Accuracy on the test turns | Card | |---|---|---|---| | `state-34way/` | one of 34 teaching states | 61.59% (n = 4,304) | [state-34way/README.md](state-34way/README.md) | | `stage-5way/` | one of 5 teaching stages | 86.64% (n = 4,304) | [stage-5way/README.md](stage-5way/README.md) | The 34-state classifier is the "BERT consultant" in the project's evaluation runs. The 5-stage classifier is not used in the pipeline; it backs the stage-accuracy figure in the paper. A larger 34-state classifier built on Qwen3.5-0.8B (68.45%) is at [ulises-c/socrates-state-classifier-qwen3.5-lora](https://huggingface.co/ulises-c/socrates-state-classifier-qwen3.5-lora). ## Loading Each model is in its own subfolder, so pass `subfolder`: ```python from transformers import AutoModelForSequenceClassification, AutoTokenizer repo, sub = "ulises-c/socrates-bert-classifiers-zh", "state-34way" # or "stage-5way" tokenizer = AutoTokenizer.from_pretrained(repo, subfolder=sub) model = AutoModelForSequenceClassification.from_pretrained(repo, subfolder=sub).eval() ``` The card in each folder gives the input format, the per-stage accuracy, the weights' sha256, and the limits. In short: Chinese only, elementary-school science only, labels produced by the KELE authors' pipeline and not by human annotators, one training run each, and accuracy inside a running dialogue is lower than on the test turns. ## Contact https://github.com/ulises-c/csen-346/issues