Views
No views yet
PortugueseT5OieAbstractive is a Portuguese T5 encoder-decoder checkpoint fine-tuned
for abstractive Open Information Extraction. It generates binary ARG0, V,
ARG1 extractions and offers a smaller alternative to the Qwen3OIE 4B/8B models.| Field | Value |
|---|---|
| Public repository | bratao/PortugueseT5OieAbstractive |
| Described predecessor | PortugueseT5-Instruct |
| Architecture | T5 encoder-decoder |
| Task | Portuguese abstractive OpenIE |
| Parameters | 783,150,080 (approximately 783M; thesis rounds to 770M) |
| Published weight precision | float32 |
| Approximate repository size | 3.13 GB |
model.safetensors SHA-256 | ca5174892e5bb01afec8536a96cf1fc4d5e2d4a33624cab7da2b4819e2343874 |
| Audited revision | 7ae5a9d9c4554e9c1342a0cc9c44dd130e8ddd16 (2026-08-30) |
portuguese-openiepip install "portuguese-openie[transformers]"1from portuguese_openie import Model, PortugueseOpenIE
2
3extractor = PortugueseOpenIE(Model.PORTUGUESE_T5_OIE_ABSTRACTIVE)
4triples = extractor.extract(
5 "O enxofre é um nutriente vital para o crescimento saudável das plantas, "
6 "mas os solos no Reino Unido são naturalmente deficientes deste mineral."
7)
8print([triple.to_dict() for triple in triples])1[
2 {
3 "ARG0": "O enxofre",
4 "V": "é",
5 "ARG1": "um nutriente vital para o crescimento saudável das plantas",
6 },
7 {
8 "ARG0": "os solos no Reino Unido",
9 "V": "são",
10 "ARG1": "naturalmente deficientes de enxofre",
11 },
12]1import torch
2from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
3
4model_id = "bratao/PortugueseT5OieAbstractive"
5revision = "7ae5a9d9c4554e9c1342a0cc9c44dd130e8ddd16"
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)
16print(tokenizer.decode(output[0], skip_special_tokens=True))1Entrada:
2{sentence}
3Resposta:Dada uma frase S você consegue fazer extrações em JSON no formato ARG0 , V, ARG1. Realize a extração para a frase abaixo:t5_oie.py inference/evaluation script uses the shorter
Entrada/Resposta form above, and its recorded outputs are the source evaluated
for the reported results below. The library therefore uses that reproducible
inference form by default. This does not establish that it was also the training
serialization; the thesis and recovered inference script document different stages
of the workflow. Use greedy decoding and validate schema adherence. The unified
parser accepts JSON and legacy ARG0/V/ARG1 output.| Criterion | Precision | Recall | F1 |
|---|---|---|---|
| Perfect match | 0.3256 | 0.2353 | 0.2732 |
| Lexical match | 0.6163 | 0.4454 | 0.5171 |
PortugueseT5OieAbstractive. Evaluation was not rerun
for this card. The thesis does not by itself resolve whether the current public
revision is byte-for-byte the evaluated checkpoint.PortugueseT5-Instruct on
WikiPUD-Portuguese-Abstractive: 29,026 Portuguese sentences and 102,788 synthetic
extractions from 2,015 Wikipedia paragraphs, generated with Gemini 2.5 Flash. The
public repository does not declare a Hugging Face dataset ID or bundle that corpus,
so the YAML intentionally omits datasets.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}