Practical overview
When it fits
Use REBEL when a workflow needs relation triplets extracted from text and can accommodate generated-token decoding and parsing before consuming structured output.
Who it is for
- NLP practitioners building relation-extraction pipelines.
- Teams converting text into structured entity relationships for knowledge-base or downstream information-extraction work.
- Researchers exploring sequence-to-sequence relation extraction and its multilingual direction.
Documented uses
- Extract subject–relation–object triplets from natural-language passages.
- Prepare structured relationships for downstream knowledge-graph or knowledge-base workflows.
- Train or test the model using the repository's Python code and dataset scripts.
Requirements & limits
- The demonstrated inference path uses Hugging Face Transformers with Babelscape/rebel-large.
- Generated special tokens need decoding and parsing to produce triplets.
- The repository's setup script uses Conda and installs PyTorch plus requirements-file dependencies.
- The README announces mREBEL and multilingual datasets, but the supplied material does not specify supported languages.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Load REBEL and parse generated triplets
Use the documented Transformers example to generate relation text and parse it into subject, relation, and object fields.
Before you start
- Python environment with the Transformers package and dependencies installed.
- Access to the Hugging Face model Babelscape/rebel-large.
Steps
Create a Transformers text2text-generation pipeline using Babelscape/rebel-large as both model and tokenizer.
Pass text to the pipeline to generate token IDs.
Decode the generated token IDs with the tokenizer to preserve the special tokens.
Parse the decoded sequence using the documented triplet markers to produce head, type, and tail fields.
Expected outcome
Generated relation output is converted into structured entity-relation triplets.
Guide limitations
- The README example does not specify hardware or runtime requirements.
- The generated format requires manual token-aware decoding and parsing.
- The repository evidence does not establish an API or hosted inference service.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 18 October 2026
- Original website title
- Babelscape/rebel · Official homepage title · retained in its source language

