# marcoagp/triagem_semantica_local architecture

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

- Interactive diagram: https://gitdiagram.com/marcoagp/triagem_semantica_local
- Repository: https://github.com/marcoagp/triagem_semantica_local

## Overview

This repository is a local, researcher-facing literature-triage script, not a search or PDF-retrieval system. Its workflow reads bibliographic CSV metadata, compares title/abstract text with multilingual semantic prototypes, applies category and eligibility rules, and exports an Excel workbook for human review. The script also flags possible false positives and negatives and extracts relevant text passages. The sampled source is partial, so internal links are limited to relationships visible in the excerpt or explicitly described in the README.

Main entry points: [`triagem_semantica_local_v3_assuntos_estudantis.py`](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py) (Text preparation), [`artigos.csv`](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/artigos.csv) (Bibliography CSV), [`triagem_semantica_local_final_TRADUZIDO_PT_TODAS_ABAS.xlsx`](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_final_TRADUZIDO_PT_TODAS_ABAS.xlsx) (Excel workbook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Research inputs"]
  node_csv["Bibliography CSV<br/>[artigos.csv]"]
end

subgraph group_analysis["Semantic triage"]
  node_textprep["Text preparation"]
  node_embeddings["Semantic embeddings"]
  node_classification["Classification rules"]
end

subgraph group_review["Audit and review"]
  node_audit["Audit signals"]
  node_export["Workbook export"]
  node_workbook["Excel workbook"]
end

node_researcher(("Researcher"))

node_researcher -->|"provides metadata"| node_csv
node_researcher -->|"runs triage"| node_textprep
node_textprep -->|"reads records"| node_csv
node_textprep -->|"prepares text"| node_embeddings
node_embeddings -->|"scores axes"| node_classification
node_classification -->|"assesses results"| node_audit
node_audit -->|"supplies review data"| node_export
node_export -->|"writes sheets"| node_workbook
node_researcher -->|"reviews output"| node_workbook

click node_csv "https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/artigos.csv"
click node_textprep "https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py"
click node_embeddings "https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py"
click node_classification "https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py"
click node_audit "https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py"
click node_export "https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py"
click node_workbook "https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_final_TRADUZIDO_PT_TODAS_ABAS.xlsx"

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_csv toneBlue
class node_textprep,node_embeddings,node_classification toneAmber
class node_audit,node_export,node_workbook toneMint
class node_researcher toneIndigo
```

## Components

### Research inputs

- [Bibliography CSV](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/artigos.csv): `artigos.csv`

### Semantic triage

- [Text preparation](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py): `triagem_semantica_local_v3_assuntos_estudantis.py`
- [Semantic embeddings](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py): `triagem_semantica_local_v3_assuntos_estudantis.py`
- [Classification rules](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py): `triagem_semantica_local_v3_assuntos_estudantis.py`

### Audit and review

- [Audit signals](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py): `triagem_semantica_local_v3_assuntos_estudantis.py`
- [Workbook export](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_v3_assuntos_estudantis.py): `triagem_semantica_local_v3_assuntos_estudantis.py`
- [Excel workbook](https://github.com/marcoagp/triagem_semantica_local/blob/MarcoAGP/triagem_semantica_local_final_TRADUZIDO_PT_TODAS_ABAS.xlsx): `triagem_semantica_local_final_TRADUZIDO_PT_TODAS_ABAS.xlsx`

### Other components

- **Researcher**

## Connections

- Researcher → Bibliography CSV: provides metadata (evidence: `README.md`)
- Researcher → Text preparation: runs triage (evidence: `README.md`)
- Text preparation → Bibliography CSV: reads records (evidence: `README.md`)
- Text preparation → Semantic embeddings: prepares text (evidence: `triagem_semantica_local_v3_assuntos_estudantis.py`)
- Semantic embeddings → Classification rules: scores axes (evidence: `triagem_semantica_local_v3_assuntos_estudantis.py`)
- Classification rules → Audit signals: assesses results (evidence: `README.md`)
- Audit signals → Workbook export: supplies review data (evidence: `README.md`)
- Workbook export → Excel workbook: writes sheets (evidence: `triagem_semantica_local_v3_assuntos_estudantis.py`)
- Researcher → Excel workbook: reviews output (evidence: `README.md`)
