# mlalab/vnlegaltext architecture

> Architecture diagram of the GitHub repository mlalab/vnlegaltext, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mlalab/vnlegaltext
- Repository: https://github.com/mlalab/vnlegaltext

## Overview

VNLegalText is a downloadable annotated dataset, not an application or runtime library. Its principal use is to study legal-document references and the relations between those references and the document containing them. The README documents the corpus contents, annotation concepts, and collection provenance; no source excerpts are available to establish processing or access workflows.

Main entry points: [`data/xml_data.zip`](https://github.com/mlalab/vnlegaltext/blob/main/data/xml_data.zip) (Legal document corpus)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dataset["Dataset contents"]
  node_corpus["Legal document corpus<br/>[xml_data.zip]"]
  node_references["Reference entities<br/>[xml_data.zip]"]
  node_relations["Reference relations<br/>[xml_data.zip]"]
end

node_researcher(("Dataset user"))
node_vbpl["Vietnamese legal database"]

node_researcher -->|"uses for extraction"| node_corpus
node_corpus -->|"annotates mentions"| node_references
node_references -->|"labels relations"| node_relations
node_vbpl -->|"provides raw data"| node_corpus

click node_corpus "https://github.com/mlalab/vnlegaltext/blob/main/data/xml_data.zip"
click node_references "https://github.com/mlalab/vnlegaltext/blob/main/data/xml_data.zip"
click node_relations "https://github.com/mlalab/vnlegaltext/blob/main/data/xml_data.zip"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_corpus,node_references,node_relations,node_researcher toneBlue
class node_vbpl toneAmber
```

## Components

### Dataset contents

- [Legal document corpus](https://github.com/mlalab/vnlegaltext/blob/main/data/xml_data.zip): `data/xml_data.zip`
- [Reference entities](https://github.com/mlalab/vnlegaltext/blob/main/data/xml_data.zip): `data/xml_data.zip`
- [Reference relations](https://github.com/mlalab/vnlegaltext/blob/main/data/xml_data.zip): `data/xml_data.zip`

### Other components

- **Dataset user**
- **Vietnamese legal database**

## Connections

- Dataset user → Legal document corpus: uses for extraction (evidence: `README.md`)
- Legal document corpus → Reference entities: annotates mentions (evidence: `README.md`)
- Reference entities → Reference relations: labels relations (evidence: `README.md`)
- Vietnamese legal database → Legal document corpus: provides raw data (evidence: `README.md`)
