caarleexx commited on
Commit
fcea076
·
verified ·
1 Parent(s): c5a490a

Upload README_fixed.md

Browse files
Files changed (1) hide show
  1. README_fixed.md +69 -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.