Files
ljwx-study/demo_output.json
gaoandQwen-Coder 1701472642 feat: Enhanced PDF parsing and question extraction system
- Implemented enhanced PDF parsing with V2 parser for better question extraction
- Added improved question formatting and display components
- Integrated question navigation and progress tracking features
- Added JSON export functionality for paper questions
- Enhanced image extraction and association with questions
- Improved database configuration with environment variables
- Updated UI with responsive question cards and navigation sidebar
- Added mathematical symbol rendering and question type detection

Co-authored-by: Qwen-Coder <[email protected]>
2025-11-02 15:54:43 +08:00

989 lines
26 KiB
JSON

{
"paper_info": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"subject": "数学",
"grade": "grade8"
},
"questions": [
{
"id": null,
"number": "1",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 15.6,
"seconds": 936,
"formatted": "15.6分钟"
},
"stem": "(1) 2 2 4 5 0 x x    ; (2)     3 1 2 1 x x x   ",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 1
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [
{
"number": "1",
"type": "subquestion",
"content": "2 2 4 5 0 x x    ;",
"score": null
},
{
"number": "2",
"type": "subquestion",
"content": "    3 1 2 1 x x x   ",
"score": null
}
],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "2",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 15.1,
"seconds": 909,
"formatted": "15.1分钟"
},
"stem": "(1)解一元二次方程的基本思想是____________(填“降次”或“消元”);",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 1
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "3",
"type": "fill_blank",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 2.9,
"seconds": 174,
"formatted": "2.9分钟"
},
"stem": "(1)求证:四边形BDEF 是菱形;",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 1
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [
{
"number": "1",
"type": "subquestion",
"content": "求证:四边形BDEF 是菱形;",
"score": null
}
],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "4",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 17.0,
"seconds": 1018,
"formatted": "17.0分钟"
},
"stem": "(1)如图2,正方形ABCD 中,点E ,F ,M 分别在AB ,BC ,AD 上,连接CE ,MF ,若CE MF  于点P ,请 判断CE 与MF 是否为正方形ABCD 的等垂线段,说明理由; 【深入探究】",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 3
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [
{
"number": "1",
"type": "subquestion",
"content": "如图2,正方形ABCD 中,点E ,F ,M 分别在AB ,BC ,AD 上,连接CE ,MF ,若CE MF  于点P ,请 判断CE 与MF 是否为正方形ABCD 的等垂线段,说明理由; 【深入探究】",
"score": null
}
],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "5",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 20.1,
"seconds": 1208,
"formatted": "20.1分钟"
},
"stem": "解方程    2 3 2 2 x x    ,下面是甲、乙两同学的部分运算过程. 甲同学: 乙同学: 两边同时除以  2 x  , 移项,得   2 3 2 2 0 x x     , 得3 2 x   , 提取公因式,得   2 3 2 0 x x     , 则 5 x  . 则2 0 x   或3 2 0 x   , 解得 1 2 2, 1 x x  .",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 1
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "6",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 15.9,
"seconds": 953,
"formatted": "15.9分钟"
},
"stem": "(2)请判断他们的解法是否正确?若其中有一位同学正确,请写出一种异于该同学解法的正确解答过程;若都错误, 请写出你认为正确的解答过程.",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 1
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [
{
"number": "2",
"type": "subquestion",
"content": "请判断他们的解法是否正确?若其中有一位同学正确,请写出一种异于该同学解法的正确解答过程;若都错误, 请写出你认为正确的解答过程.",
"score": null
}
],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "7",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 15.5,
"seconds": 932,
"formatted": "15.5分钟"
},
"stem": "(2)连接DF 交BC 于点M ,若 4 BE  , 2 5 AC  ,求DM 的长. 试卷第1页,共3页",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 1
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [
{
"number": "2",
"type": "subquestion",
"content": "连接DF 交BC 于点M ,若 4 BE  , 2 5 AC  ,求DM 的长. 试卷第1页,共3页",
"score": null
}
],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "8",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 17.0,
"seconds": 1021,
"formatted": "17.0分钟"
},
"stem": "(2)如图3,正方形ABCD 中,点E 在AB 边上,点F 在BC 延长线上,连接DE ,DF ,EF 交CD 于点P ,若 45 DEF   ,求证:DE 与DF 是正方形ABCD 的等垂线段; 【拓展应用】",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 3
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [
{
"number": "2",
"type": "subquestion",
"content": "如图3,正方形ABCD 中,点E 在AB 边上,点F 在BC 延长线上,连接DE ,DF ,EF 交CD 于点P ,若 45 DEF   ,求证:DE 与DF 是正方形ABCD 的等垂线段; 【拓展应用】",
"score": null
}
],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "9",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 15.7,
"seconds": 939,
"formatted": "15.7分钟"
},
"stem": "如图,在△ABC 中,AB AC  ,D ,E 分别是AB ,BC 的中点,BF DE  ,EF DB ∥ .",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 1
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "10",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 17.7,
"seconds": 1060,
"formatted": "17.7分钟"
},
"stem": "(3)如图4,正方形ABCD 中, 6 AB  ,F 是BC 中点,点E ,G 分别在AB ,CD 上,AF ,EG 交于点H ,连接 EF ,FG ,若AF ,EG 为正方形ABCD 的等垂线段, 90 EFG   ,求BE 的长. 试卷第3页,共3页",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 3
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [
{
"number": "3",
"type": "subquestion",
"content": "如图4,正方形ABCD 中, 6 AB  ,F 是BC 中点,点E ,G 分别在AB ,CD 上,AF ,EG 交于点H ,连接 EF ,FG ,若AF ,EG 为正方形ABCD 的等垂线段, 90 EFG   ,求BE 的长. 试卷第3页,共3页",
"score": null
}
],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "11",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 26.7,
"seconds": 1599,
"formatted": "26.7分钟"
},
"stem": "【综合与实践】为了更好推广高明特色美食,让我们一起制定销售方案吧: 主题:高明特色美食销售方案制定问题 高明美食历史悠久,尤其是“高明角仔”和“高明濑粉”,是以晒干的粘米粉为原料,辅以各种各样的馅料制成的民间 小吃,其粉质细腻光滑,口感爽滑柔韧,稻香味十足.为了能吸引不同年龄段的人流进店消费,某美食店推出“高 明角仔”,“高明猪杂濑粉”两个镇店招牌美食. 高明角仔 高明猪杂濑粉 素材 经统计,该美食店5 月份“高明角仔”销售量为480 份,7 月份销售量为750 份;而“高明濑粉”7 月份 素材2 销售量为600 份. 为了尽快减少库存,决定8 月份对“高明猪杂濑粉”作降价促销,已知每份“高明猪杂濑粉”的成本为9 素材3 元.经试验,发现该款濑粉每降价2 元,月销售量就会增加200 份. 问题解决 任务1 求该美食店“高明角仔”5 月份到7 月份销售量的月平均增长率是多少? 任务2 为了使该店8 月份“高明猪杂濑粉”的总利润达到6300 元,求该款濑粉应该降价多少元? 试卷第2页,共3页",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 2
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "12",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 18.7,
"seconds": 1124,
"formatted": "18.7分钟"
},
"stem": "综合与实践 【了解定义】 如果两条线段同时满足下面两个条件1端点都在正方形的边(所在直线)上;2垂直且相等,则称这两条线段叫做 正方形的等垂线段.如图1,正方形ABCD 中,点E ,F 分别在AB ,BC 边上,连接CE ,DF ,若CE DF  且CE DF  , 则称CE 与DF 为正方形ABCD 的等垂线段. 【基础探究】",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 3
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
},
{
"id": null,
"number": "13",
"type": "essay",
"subject": "数学",
"grade": "",
"chapter": "",
"difficulty": {
"level": 3,
"label": "中等",
"stars": "★★★"
},
"score": {
"total": 0,
"formatted": "未标分",
"extracted_from_text": false
},
"estimated_time": {
"minutes": 16.3,
"seconds": 978,
"formatted": "16.3分钟"
},
"stem": "2025 年9 月2 日初中数学作业 学校:___________姓名:___________班级:___________考号:___________ 1 解方程:",
"options": [],
"correct_answer": "",
"explanation": "",
"analysis": "",
"hints": [],
"knowledge_points": [],
"images": [],
"formulas": [],
"audio": "",
"video": "",
"source": {
"type": "auto_extracted",
"method": "auto_extracted",
"paper": {
"id": 1,
"title": "2025年9月2日初中数学作业",
"page": 1
},
"extraction_confidence": 0.8,
"verified": false
},
"metadata": {
"extraction_method": "manual",
"original_format": "pdf",
"language": "zh-CN",
"tags": [],
"notes": "",
"page_spans": [],
"source_text": ""
},
"statistics": {
"created_at": "",
"updated_at": "",
"view_count": 0,
"attempt_count": 0,
"correct_count": 0,
"accuracy_rate": 0.0
},
"variants": [],
"validation": {
"is_valid": true,
"errors": [],
"warnings": [],
"completeness_score": 0.375
}
}
],
"statistics": {
"total_questions": 13,
"question_types": {
"essay": 12,
"fill_blank": 1
},
"difficulty_distribution": {
"简单": 0,
"较易": 0,
"中等": 13,
"较难": 0,
"困难": 0
},
"total_score": 0,
"estimated_time": 214.2,
"knowledge_points": [],
"has_images": 0,
"average_accuracy": 0.0,
"estimated_time_formatted": "3小时34分钟"
},
"processing_errors": [],
"export_info": {
"exported_at": "2025-11-01T22:18:50.468094",
"total_questions": 13,
"error_count": 0,
"format_version": "2.0"
}
}