--- license: mit task_categories: - text-classification - object-detection language: - en size_categories: - 10K 0.95] print(f"Found {len(high_quality)} high-quality documents") # Read document text def read_document(doc_id): text_dir = Path(f"texts/{doc_id}") full_text = [] for page_file in sorted(text_dir.glob("page_*.md")): with open(page_file) as f: full_text.append(f.read()) return "\n\n".join(full_text) # Example usage doc = high_quality[0] text = read_document(doc['doc_id']) print(f"Document {doc['doc_id']}: {len(text)} characters") ``` ### Token Analysis ```python import json # Load token statistics with open("token_stats.json") as f: stats = json.load(f) print(f"Total tokens: {stats['total_tokens']:,}") print(f"Avg tokens/doc: {stats['avg_tokens_per_doc']:.0f}") # Load per-document token counts with open("token_counts.jsonl") as f: for line in f: doc_tokens = json.loads(line) # Process individual document token counts break ``` ## Citation If you use this dataset, please cite: ```bibtex @dataset{math_docs_dataset, title={Mathematical Documents Dataset}, author={Your Name}, year={2025}, publisher={HuggingFace}, url={https://huggingface.co/datasets/your-username/math-docs-dataset} } ``` ## License MIT License ## Contact For questions or issues, please open an issue on the dataset repository.