docs(ecp): add Club Atlético River Plate ECP profile and update classification examples
This commit is contained in:
@@ -131,36 +131,53 @@ flowchart TD
|
||||
|
||||
### Formato do ECP Snapshot e Markdown
|
||||
|
||||
#### Exemplo de ECP Snapshot (`ecp_sample.json`):
|
||||
#### Exemplo de ECP Snapshot Real (`examples/ecp_club_atletico_river_plate.json`):
|
||||
```json
|
||||
{
|
||||
"target_entity_id": "ent_river_plate",
|
||||
"target_name": "River Plate",
|
||||
"aliases": ["Club Atlético River Plate", "Millonario", "El Más Grande"],
|
||||
"domain": "sports/football",
|
||||
"anchors": ["Monumental", "Copa Libertadores", "Marcelo Gallardo", "Copa Sudamericana"],
|
||||
"negative_anchors": ["Boca Juniors vitória", "Flamengo campeão"],
|
||||
"target_entity_id": "ecp_river_plate",
|
||||
"target_name": "Club Atlético River Plate",
|
||||
"canonical_name": "Club Atlético River Plate",
|
||||
"domain": "Futebol / Esportes",
|
||||
"aliases": ["Club Atlético River Plate", "River Plate", "River", "El Millonario", "La Banda", "CARP"],
|
||||
"anchors": ["Monumental", "Copa Libertadores", "Copa Sudamericana", "Eduardo Coudet", "Nicolás Otamendi"],
|
||||
"negative_anchors": ["River Plate de Montevideo", "River Plate de Asunción", "Rio da Prata"],
|
||||
"graph_version": "1.0.0",
|
||||
"related_entities": [
|
||||
{
|
||||
"entity_id": "ent_gallardo",
|
||||
"name": "Marcelo Gallardo",
|
||||
"relation_type": "manager",
|
||||
"weight": 0.85,
|
||||
"aliases": ["Muñeco"]
|
||||
"entity_id": "boca_juniors",
|
||||
"name": "Club Atlético Boca Juniors",
|
||||
"relation_type": "RIVAL_OF",
|
||||
"weight": 0.9,
|
||||
"aliases": ["Boca Juniors", "Boca", "Xeneize"]
|
||||
},
|
||||
{
|
||||
"entity_id": "estadio_monumental",
|
||||
"name": "Estadio Mâs Monumental",
|
||||
"relation_type": "HOME_VENUE_OF",
|
||||
"weight": 0.95,
|
||||
"aliases": ["Monumental", "El Monumental"]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Perfis de exemplo prontos para uso em `examples/`:
|
||||
- [`examples/ecp_club_atletico_river_plate.json`](examples/ecp_club_atletico_river_plate.json) (Club Atlético River Plate)
|
||||
- [`examples/ecp_sao_paulo_futebol_clube.json`](examples/ecp_sao_paulo_futebol_clube.json) (São Paulo FC)
|
||||
|
||||
### Exemplos de Uso CLI
|
||||
|
||||
```bash
|
||||
# Classificação Determinística padrão (Tier 1)
|
||||
python classify.py --ecp tests/fixtures/sample_ecp.json --content tests/fixtures/sample_article.md
|
||||
python classify.py \
|
||||
--ecp examples/ecp_club_atletico_river_plate.json \
|
||||
--content out/markdown/meu_artigo_001.md
|
||||
|
||||
# Salvar resultado em arquivo JSON formatado
|
||||
python classify.py --ecp ecp.json --content artigo.md --output out/resultado_classificacao.json
|
||||
python classify.py \
|
||||
--ecp examples/ecp_club_atletico_river_plate.json \
|
||||
--content out/markdown/meu_artigo_001.md \
|
||||
--output out/classification_001.json
|
||||
|
||||
# Habilitar camadas adicionais (Embeddings e LLM)
|
||||
python classify.py --ecp ecp.json --content artigo.md --enable-embeddings --enable-llm
|
||||
|
||||
Reference in New Issue
Block a user