# dotsocr_markdown_dataset ## Dataset Description This dataset contains training data for DotsOCR to convert document images directly to markdown format. ## Training Objective The model learns to: - Convert document images to clean markdown format - Preserve document structure and hierarchy - Extract all text content accurately - Use appropriate markdown formatting for different content types ## Dataset Structure - **Training samples**: 798 - **Validation samples**: 200 - **Total samples**: 998 ## Files - `data/dotsocr_markdown_dataset_train.json`: Training data in conversation format - `data/dotsocr_markdown_dataset_val.json`: Validation data in conversation format - `images/`: Directory containing all referenced images ## Data Format Each sample follows this conversation format: ```json { "conversations": [ { "from": "user", "value": "<|imgpad|>images/example.jpg<|/imgpad|>\nPlease convert this document image to markdown format..." }, { "from": "assistant", "value": "# Document Title\n\n## Section Header\n\nContent text here..." } ] } ``` ## Training Prompt The training uses this prompt to teach the model markdown conversion: ``` Convert this document image to markdown format. Extract and structure the text content as follows: - Headers and titles as plain text on separate lines - Body text as plain text paragraphs - Lists using * for bullet points - Tables using HTML table format:
| ... |
|---|
| ... |