Datasets:
Upload 2 files
Browse files- README_fixed.md +69 -0
- per_table_fixed_manifest.json +107 -0
README_fixed.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- pt
|
| 4 |
+
license: mit
|
| 5 |
+
tags:
|
| 6 |
+
- law
|
| 7 |
+
- legal
|
| 8 |
+
- brazil
|
| 9 |
+
- schema
|
| 10 |
+
- jsonl
|
| 11 |
+
size_categories:
|
| 12 |
+
- n<1K
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
# Sistema de Manifestações Processuais (Schema)
|
| 16 |
+
|
| 17 |
+
**Versão corrigida para HF Datasets** - todos os campos normalizados para tipos consistentes (sem `null` em strings).
|
| 18 |
+
|
| 19 |
+
## Como os dados estão organizados
|
| 20 |
+
|
| 21 |
+
- Cada arquivo `per_table_fixed/<tabela>.jsonl` contém **campos normalizados** daquela tabela.
|
| 22 |
+
- Todos os campos `string` usam `""` (vazio) ao invés de `null`.
|
| 23 |
+
- Todos os campos `valores` são listas `[]` (vazio) quando não aplicável.
|
| 24 |
+
|
| 25 |
+
## Arquivos por tabela (corrigidos)
|
| 26 |
+
|
| 27 |
+
| Tabela | Linhas | Arquivo |
|
| 28 |
+
|---|---:|---|
|
| 29 |
+
| `agentes` | 4 | `per_table_fixed/agentes.jsonl` |
|
| 30 |
+
| `argumentos` | 4 | `per_table_fixed/argumentos.jsonl` |
|
| 31 |
+
| `atos` | 7 | `per_table_fixed/atos.jsonl` |
|
| 32 |
+
| `fatos` | 5 | `per_table_fixed/fatos.jsonl` |
|
| 33 |
+
| `historico_processual` | 25 | `per_table_fixed/historico_processual.jsonl` |
|
| 34 |
+
| `lista_artigos_lei` | 7 | `per_table_fixed/lista_artigos_lei.jsonl` |
|
| 35 |
+
| `lista_correcoes` | 23 | `per_table_fixed/lista_correcoes.jsonl` |
|
| 36 |
+
| `lista_gatilhos` | 18 | `per_table_fixed/lista_gatilhos.jsonl` |
|
| 37 |
+
| `lista_jurisprudencia` | 9 | `per_table_fixed/lista_jurisprudencia.jsonl` |
|
| 38 |
+
| `lista_principios` | 5 | `per_table_fixed/lista_principios.jsonl` |
|
| 39 |
+
| `magistrados` | 5 | `per_table_fixed/magistrados.jsonl` |
|
| 40 |
+
| `manifestacao` | 4 | `per_table_fixed/manifestacao.jsonl` |
|
| 41 |
+
| `manifestacoes_autos` | 190 | `per_table_fixed/manifestacoes_autos.jsonl` |
|
| 42 |
+
| `objetivos` | 5 | `per_table_fixed/objetivos.jsonl` |
|
| 43 |
+
| `omissoes` | 4 | `per_table_fixed/omissoes.jsonl` |
|
| 44 |
+
| `processos_relacionados` | 10 | `per_table_fixed/processos_relacionados.jsonl` |
|
| 45 |
+
| `provas` | 6 | `per_table_fixed/provas.jsonl` |
|
| 46 |
+
| `resultados` | 4 | `per_table_fixed/resultados.jsonl` |
|
| 47 |
+
| `taxonomia_arquetipos` | 9 | `per_table_fixed/taxonomia_arquetipos.jsonl` |
|
| 48 |
+
| `taxonomia_tags` | 5 | `per_table_fixed/taxonomia_tags.jsonl` |
|
| 49 |
+
| `usuarios` | 7 | `per_table_fixed/usuarios.jsonl` |
|
| 50 |
+
|
| 51 |
+
## Total: 21 tabelas, 356 linhas
|
| 52 |
+
|
| 53 |
+
## Uso
|
| 54 |
+
|
| 55 |
+
```python
|
| 56 |
+
from datasets import load_dataset
|
| 57 |
+
|
| 58 |
+
# Exemplo: tabela principal
|
| 59 |
+
ds = load_dataset(
|
| 60 |
+
"json",
|
| 61 |
+
data_files={"train": "per_table_fixed/manifestacoes_autos.jsonl"},
|
| 62 |
+
)
|
| 63 |
+
print(ds["train"].column_names)
|
| 64 |
+
print(ds["train"][0])
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
## Fonte
|
| 68 |
+
|
| 69 |
+
Gerado a partir de `1.json` com normalização HF Datasets compatível.
|
per_table_fixed_manifest.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"table": "agentes",
|
| 4 |
+
"rows": 4,
|
| 5 |
+
"file": "per_table_fixed/agentes.jsonl"
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"table": "argumentos",
|
| 9 |
+
"rows": 4,
|
| 10 |
+
"file": "per_table_fixed/argumentos.jsonl"
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"table": "atos",
|
| 14 |
+
"rows": 7,
|
| 15 |
+
"file": "per_table_fixed/atos.jsonl"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"table": "fatos",
|
| 19 |
+
"rows": 5,
|
| 20 |
+
"file": "per_table_fixed/fatos.jsonl"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"table": "historico_processual",
|
| 24 |
+
"rows": 25,
|
| 25 |
+
"file": "per_table_fixed/historico_processual.jsonl"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"table": "lista_artigos_lei",
|
| 29 |
+
"rows": 7,
|
| 30 |
+
"file": "per_table_fixed/lista_artigos_lei.jsonl"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"table": "lista_correcoes",
|
| 34 |
+
"rows": 23,
|
| 35 |
+
"file": "per_table_fixed/lista_correcoes.jsonl"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"table": "lista_gatilhos",
|
| 39 |
+
"rows": 18,
|
| 40 |
+
"file": "per_table_fixed/lista_gatilhos.jsonl"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"table": "lista_jurisprudencia",
|
| 44 |
+
"rows": 9,
|
| 45 |
+
"file": "per_table_fixed/lista_jurisprudencia.jsonl"
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"table": "lista_principios",
|
| 49 |
+
"rows": 5,
|
| 50 |
+
"file": "per_table_fixed/lista_principios.jsonl"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"table": "magistrados",
|
| 54 |
+
"rows": 5,
|
| 55 |
+
"file": "per_table_fixed/magistrados.jsonl"
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"table": "manifestacao",
|
| 59 |
+
"rows": 4,
|
| 60 |
+
"file": "per_table_fixed/manifestacao.jsonl"
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"table": "manifestacoes_autos",
|
| 64 |
+
"rows": 190,
|
| 65 |
+
"file": "per_table_fixed/manifestacoes_autos.jsonl"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"table": "objetivos",
|
| 69 |
+
"rows": 5,
|
| 70 |
+
"file": "per_table_fixed/objetivos.jsonl"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"table": "omissoes",
|
| 74 |
+
"rows": 4,
|
| 75 |
+
"file": "per_table_fixed/omissoes.jsonl"
|
| 76 |
+
},
|
| 77 |
+
{
|
| 78 |
+
"table": "processos_relacionados",
|
| 79 |
+
"rows": 10,
|
| 80 |
+
"file": "per_table_fixed/processos_relacionados.jsonl"
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"table": "provas",
|
| 84 |
+
"rows": 6,
|
| 85 |
+
"file": "per_table_fixed/provas.jsonl"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"table": "resultados",
|
| 89 |
+
"rows": 4,
|
| 90 |
+
"file": "per_table_fixed/resultados.jsonl"
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"table": "taxonomia_arquetipos",
|
| 94 |
+
"rows": 9,
|
| 95 |
+
"file": "per_table_fixed/taxonomia_arquetipos.jsonl"
|
| 96 |
+
},
|
| 97 |
+
{
|
| 98 |
+
"table": "taxonomia_tags",
|
| 99 |
+
"rows": 5,
|
| 100 |
+
"file": "per_table_fixed/taxonomia_tags.jsonl"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"table": "usuarios",
|
| 104 |
+
"rows": 7,
|
| 105 |
+
"file": "per_table_fixed/usuarios.jsonl"
|
| 106 |
+
}
|
| 107 |
+
]
|