Constitution of Nepal Dataset
收藏资源简介:
这是一个关于尼泊尔宪法的数据集,以层次化的JSON格式组织,便于贡献和分析。数据集包括宪法的主索引文件和各个部分的JSON文件,以及原始PDF文档的引用。
This is a dataset concerning the Constitution of Nepal, organized in a hierarchical JSON format to facilitate contribution and analysis. The dataset includes the main index file of the constitution, JSON files for each of its sections, as well as citations to the original PDF documents.
尼泊尔宪法数据集
概述
该数据集旨在提供尼泊尔宪法的结构化和组织化数据,便于贡献、分析和未来的自然语言处理(NLP)任务。原始文档可在仓库中找到,文件名为 Constitution_of_Nepal_2072_ENG.pdf。
数据结构
宪法数据集采用层次化的JSON格式存储,便于清晰组织和导航。数据集的文件结构如下:
├── index.json (宪法的主要索引) ├── sections/ (包含各个部分的目录) ├── part1/ (第一部分的目录) ├── section1.json (包含第一部分的第一节) ├── section2.json (包含第一部分的第二节) ├── part2/ (第二部分的目录) ├── section10.json (包含第二部分的第十节) ├── section11.json (包含第二部分的第十一节) ├── ... (其他部分和章节) ├── preamble.json (包含序言) ├── Constitution_of_Nepal_2072_ENG.pdf (尼泊尔宪法的原始PDF文档)
主要文件
index.json: 该文件是宪法的全局概览,包含所有部分和章节的引用,以及它们各自的JSON文件路径。sections/: 该目录包含宪法的各个部分,每个部分目录下包含该部分的各个章节的JSON文件。Constitution_of_Nepal_2072_ENG.pdf: 尼泊尔宪法的原始PDF文档,供参考使用。
index.json 示例
json { "title": "Constitution of Nepal", "preamble": { "content": "We, the Sovereign People of Nepal...", "file": "sections/preamble.json" }, "parts": [ { "part_number": 1, "title": "Preliminary", "sections": [ { "section_number": 1, "title": "Constitution as the fundamental law", "file": "sections/part1/section1.json" }, { "section_number": 2, "title": "Sovereignty and state authority", "file": "sections/part1/section2.json" } ] }, { "part_number": 2, "title": "Citizenship", "sections": [ { "section_number": 10, "title": "Not to deprive of citizenship", "file": "sections/part2/section10.json" }, { "section_number": 11, "title": "To be citizens of Nepal", "file": "sections/part2/section11.json" } ] } ] }
单个章节文件示例 (sections/part1/section1.json)
json { "section_number": 1, "title": "Constitution as the fundamental law", "content": "This Constitution is the fundamental law of Nepal. Any law inconsistent with this Constitution shall, to the extent of such inconsistency, be void.", "part_number": 1 }
贡献指南
欢迎所有人贡献!贡献流程如下:
-
Fork 仓库:点击页面右上角的 "Fork" 按钮,创建仓库的副本到你的GitHub账户。
-
克隆仓库:使用以下命令将你的Fork仓库克隆到本地: bash git clone https://github.com/yourusername/constitution-of-nepal-dataset.git
-
创建新分支:在本地创建新分支: bash git checkout -b your-feature-branch
-
添加或编辑章节文件:导航到
sections/目录,创建新章节文件或编辑现有文件。 -
更新索引:如果添加新章节,确保更新
index.json以包含新章节的引用。 -
提交更改:提交更改: bash git add . git commit -m "Add new section or update existing section"
-
推送更改:将更改推送到你的Fork仓库: bash git push origin your-feature-branch
-
发起Pull Request:前往原始仓库,点击 "New Pull Request",选择你的分支并描述你的更改。
许可证
该项目采用MIT许可证 - 详情见 LICENSE 文件。




