This commit is contained in:
mingtian 2025-04-06 19:37:40 +08:00
parent 6d06d0786e
commit 2f6b146e1d
2 changed files with 124 additions and 69 deletions

View file

@ -3,3 +3,4 @@ pymupdf==1.25.5
PyPDF2==3.0.1 PyPDF2==3.0.1
python-dotenv==1.1.0 python-dotenv==1.1.0
tiktoken==0.7.0 tiktoken==0.7.0
pyyaml==6.0.2

View file

@ -2,10 +2,11 @@
"doc_name": "four-lectures.pdf", "doc_name": "four-lectures.pdf",
"structure": [ "structure": [
{ {
"title": "Four Lectures on Standard ML", "title": "Preface",
"start_index": 1, "start_index": 1,
"end_index": 1, "end_index": 1,
"nodes": [ "node_id": "0000"
},
{ {
"title": "ML at a Glance", "title": "ML at a Glance",
"start_index": 2, "start_index": 2,
@ -73,9 +74,6 @@
} }
], ],
"node_id": "0001" "node_id": "0001"
}
],
"node_id": "0000"
}, },
{ {
"title": "Programming with ML Modules", "title": "Programming with ML Modules",
@ -266,14 +264,70 @@
{ {
"title": "Appendix A: The Bare Interpreter", "title": "Appendix A: The Bare Interpreter",
"start_index": 44, "start_index": 44,
"end_index": 44,
"nodes": [
{
"title": "Syntax",
"start_index": 44,
"end_index": 44,
"node_id": "0043"
},
{
"title": "Parsing",
"start_index": 44,
"end_index": 45,
"node_id": "0044"
},
{
"title": "Environments",
"start_index": 45,
"end_index": 45,
"node_id": "0045"
},
{
"title": "Evaluation",
"start_index": 45,
"end_index": 46,
"node_id": "0046"
},
{
"title": "Type Checking",
"start_index": 46,
"end_index": 46,
"node_id": "0047"
},
{
"title": "The Interpreter",
"start_index": 46,
"end_index": 47,
"node_id": "0048"
},
{
"title": "The Evaluator",
"start_index": 47,
"end_index": 48,
"node_id": "0049"
},
{
"title": "The Typechecker",
"start_index": 48,
"end_index": 49,
"node_id": "0050"
},
{
"title": "The Basics",
"start_index": 50,
"end_index": 52, "end_index": 52,
"node_id": "0051"
}
],
"node_id": "0042" "node_id": "0042"
}, },
{ {
"title": "Appendix B: Files", "title": "Appendix B: Files",
"start_index": 53, "start_index": 53,
"end_index": 53, "end_index": 53,
"node_id": "0043" "node_id": "0052"
} }
] ]
} }