mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
fix(cookbook): restore original notebook JSON formatting
The previous commit's fix to 03_Document_Parsing.ipynb collapsed the cell's source array into a single string and dropped the trailing newline. Restore the original array-of-lines formatting so the diff is limited to the corrected badge URL.
This commit is contained in:
@@ -3,7 +3,40 @@
|
|||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": "[](https://colab.research.google.com/github/semantica-agi/semantica/blob/main/cookbook/introduction/03_Document_Parsing.ipynb)\n\n# Document Parsing\n\n## Overview\n\nThis notebook demonstrates how to parse various document formats using Semantica's parsing modules. You'll learn to extract text, metadata, and structured data from PDFs, DOCX, CSV, JSON, XML, and HTML files.\n\n**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/parse/)\n\n### Learning Objectives\n\n- Use `DocumentParser` for general document parsing\n- Use format-specific parsers: `PDFParser`, `DOCXParser`, `CSVParser`, `JSONParser`, `XMLParser`, `HTMLParser`\n- Extract text content and metadata from documents\n- Parse structured data formats\n\n## Installation\n\nInstall Semantica from PyPI:\n\n```bash\npip install semantica\n# Or with all optional dependencies:\npip install semantica[all]\n```\n\n---\n\n## Step 1: Document Parser\n\nParse various document formats using the general DocumentParser."
|
"source": [
|
||||||
|
"[](https://colab.research.google.com/github/semantica-agi/semantica/blob/main/cookbook/introduction/03_Document_Parsing.ipynb)\n",
|
||||||
|
"\n",
|
||||||
|
"# Document Parsing\n",
|
||||||
|
"\n",
|
||||||
|
"## Overview\n",
|
||||||
|
"\n",
|
||||||
|
"This notebook demonstrates how to parse various document formats using Semantica's parsing modules. You'll learn to extract text, metadata, and structured data from PDFs, DOCX, CSV, JSON, XML, and HTML files.\n",
|
||||||
|
"\n",
|
||||||
|
"**Documentation**: [API Reference](https://semantica.readthedocs.io/reference/parse/)\n",
|
||||||
|
"\n",
|
||||||
|
"### Learning Objectives\n",
|
||||||
|
"\n",
|
||||||
|
"- Use `DocumentParser` for general document parsing\n",
|
||||||
|
"- Use format-specific parsers: `PDFParser`, `DOCXParser`, `CSVParser`, `JSONParser`, `XMLParser`, `HTMLParser`\n",
|
||||||
|
"- Extract text content and metadata from documents\n",
|
||||||
|
"- Parse structured data formats\n",
|
||||||
|
"\n",
|
||||||
|
"## Installation\n",
|
||||||
|
"\n",
|
||||||
|
"Install Semantica from PyPI:\n",
|
||||||
|
"\n",
|
||||||
|
"```bash\n",
|
||||||
|
"pip install semantica\n",
|
||||||
|
"# Or with all optional dependencies:\n",
|
||||||
|
"pip install semantica[all]\n",
|
||||||
|
"```\n",
|
||||||
|
"\n",
|
||||||
|
"---\n",
|
||||||
|
"\n",
|
||||||
|
"## Step 1: Document Parser\n",
|
||||||
|
"\n",
|
||||||
|
"Parse various document formats using the general DocumentParser.\n"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
@@ -238,4 +271,4 @@
|
|||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
"nbformat_minor": 2
|
"nbformat_minor": 2
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user