Instructions to use MidTool/MidTool-fasttext-pdf-quality-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- fastText
How to use MidTool/MidTool-fasttext-pdf-quality-classifier with fastText:
from huggingface_hub import hf_hub_download import fasttext model = fasttext.load_model(hf_hub_download("MidTool/MidTool-fasttext-pdf-quality-classifier", "model.bin")) - Notebooks
- Google Colab
- Kaggle
| license: apache-2.0 | |
| library_name: fasttext | |
| pipeline_tag: text-classification | |
| tags: | |
| - data-quality | |
| - data-filtering | |
| - fasttext | |
| extra_gated_heading: Access this model | |
| extra_gated_prompt: >- | |
| By requesting access you agree to the Apache-2.0 license. The model is provided as is, | |
| without warranty of any kind. The authors accept no liability for its outputs or for any | |
| use made of it. | |
| extra_gated_button_content: Agree and access | |
| # MidTool-fasttext-pdf-quality-classifier | |
| The fastText quality classifier used to filter PDF documents when building [MidTool-Mix](https://huggingface.co/datasets/MidTool/MidTool-Mix). It scores a document on whether it is useful tool-use / developer-facing technical material (manuals, product handbooks, platform documentation) rather than generic or noisy PDF-extraction output. | |
| It is the PDF counterpart of [MidTool-fasttext-web-quality-classifier](https://huggingface.co/MidTool/MidTool-fasttext-web-quality-classifier), trained the same way but applied with a stricter threshold, since PDF extraction is noisier than web text. | |
| ## Details | |
| See our paper for the full data, training, and evaluation details. | |
| ```bibtex | |
| @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} | |
| } | |
| ``` | |