Instructions to use MidTool/MidTool-fasttext-web-quality-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- fastText
How to use MidTool/MidTool-fasttext-web-quality-classifier with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("MidTool/MidTool-fasttext-web-quality-classifier", "model.bin")) - Notebooks
- Google Colab
- Kaggle
MidTool-fasttext-web-quality-classifier
The fastText quality classifier used to filter web documents when building MidTool-Mix. It scores a document on whether it is useful tool-use / developer-facing technical material (API references, SDK and library docs, CLI help pages, troubleshooting pages, developer Q&A) rather than generic web noise.
It is the web counterpart of MidTool-fasttext-pdf-quality-classifier.
Usage
import fasttext
from huggingface_hub import hf_hub_download
path = hf_hub_download("MidTool/MidTool-fasttext-web-quality-classifier", "model.bin")
model = fasttext.load_model(path)
labels, probs = model.predict(text.replace("\n", " "))
Input should be a single line of whitespace-normalized text.
Details
See our paper for the full data, training, and evaluation details.
@article{jiang2026midtool,
title = {MidTool: Mid-training Data Synthesis for Agentic Tool Use},
author = {Jiang, Fengqing and Wang, Yite and Liu, Boyi and Wang, Zhaoyang and
Xu, Canwen and Yao, Zhewei and Poovendran, Radha and He, Yuxiong},
year = {2026}
}
- Downloads last month
- -