Views
No views yet
PortugueseT5Oie is a Portuguese T5 encoder-decoder research checkpoint that the
current portuguese-openie registry classifies as extractive Open Information
Extraction. No distinct thesis section, training manifest, or evaluation file was
found that establishes the exact task and prompt for these public bytes. The
classification and Entrada/Resposta adapter below are therefore experimental
integration choices, not recovered checkpoint documentation.portuguese-openie API, but its
published training state and evaluation provenance are incomplete. Use it as a
research checkpoint, pin the model revision, and validate it on your own data.| Field | Value |
|---|---|
| Public repository | bratao/PortugueseT5Oie |
| Model family | PortugueseT5 encoder-decoder |
| Task in current library registry | Portuguese extractive OpenIE; artifact provenance unverified |
| Parameters | 783,150,080 (approximately 783M; thesis rounds to 770M) |
| Published weight precision | float32 |
| Approximate repository size | 3.13 GB |
| Audited revision | 3600cd62101e3cfdbafa46a7c3187ef4c69fc436 (2026-08-30) |
portuguese-openiepip install "portuguese-openie[transformers]"1from portuguese_openie import Model, PortugueseOpenIE
2
3extractor = PortugueseOpenIE(Model.PORTUGUESE_T5_OIE)
4triples = extractor.extract("A UFBA está localizada em Salvador.")
5print([triple.to_dict() for triple in triples])[{"ARG0": "A UFBA", "V": "está localizada em", "ARG1": "Salvador"}]1import torch
2from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
3
4model_id = "bratao/PortugueseT5Oie"
5revision = "3600cd62101e3cfdbafa46a7c3187ef4c69fc436"
6tokenizer = AutoTokenizer.from_pretrained(model_id, revision=revision)
7model = AutoModelForSeq2SeqLM.from_pretrained(
8 model_id, revision=revision, dtype="auto", device_map="auto"
9)
10
11sentence = "A UFBA está localizada em Salvador."
12prompt = f"Entrada:\n{sentence}\nResposta:\n"
13inputs = tokenizer(prompt, return_tensors="pt", truncation=True).to(model.device)
14with torch.inference_mode():
15 output = model.generate(**inputs, max_new_tokens=512, do_sample=False)
16raw = tokenizer.decode(output[0], skip_special_tokens=True)
17print(raw)portuguese-openie backend and a locally modified inference script use:1Entrada:
2{sentence}
3Resposta:Entrada/Resposta string is not independently established as the fine-tuning
template. The library parses common JSON and legacy ARG0/V/ARG1 formats into
a normalized triple object, but this model/prompt pair still needs an E2E test.PortugueseT5OieAbstractive, not this repository.
Do not reuse those numbers here. This artifact remains experimental until its final
checkpoint and evaluation are independently confirmed.datasets from YAML.1@phdthesis{cabral2025evolving,
2 author = {Cabral, Bruno Souza},
3 title = {Evolving Open Information Extraction for Portuguese employing Language Models},
4 school = {Universidade Federal da Bahia},
5 year = {2025}
6}
7
8@inproceedings{cabral2022portnoie,
9 author = {Cabral, Bruno and Souza, Marlo and Claro, Daniela Barreiro},
10 title = {PortNOIE: A Neural Framework for Open Information Extraction for the Portuguese Language},
11 booktitle = {Computational Processing of the Portuguese Language (PROPOR 2022)},
12 year = {2022},
13 doi = {10.1007/978-3-030-98305-5_23}
14}