s-nlp / enoki-openie-encoder

huggingface.co
Total runs: 132
24-hour runs: 0
7-day runs: -99
30-day runs: 22
Model's Last Updated: September 07 2026
feature-extraction

Introduction of enoki-openie-encoder

Model Details of enoki-openie-encoder

Enoki OpenIE Encoder

Enoki OpenIE Encoder banner

Enoki OpenIE Encoder is an LLM-free fact extractor for English. It distills Enoki's LLM-based OpenIE decomposition into a ModernBERT-large Iterative Grid Labeling encoder that converts sentences into text-anchored (subject, relation, object) triples. Like the atomic-fact decomposition stage in FActScore-style factuality pipelines, it turns free-form text into facts that can be verified independently, but performs the extraction with a single encoder instead of a generative LLM.

The model is designed for Enoki's multi-level hallucination detection pipeline. Extracted facts can be checked against a reference context with a separate NLI or factuality verifier. Because the extracted facts remain anchored to tokens in the original sentence, an unsupported fact can be projected directly back to its source span. The same representation supports both claim-level verification and span-level localization without a separate LLM-based claim-to-text alignment step.

The encoder was trained on the EnokiQA dev split using incremental triples produced by Enoki-LLM, making the training setup a form of fact-extractor distillation.

Source code: s-nlp/Enoki

Paper: Enoki: Efficient Multi-Level Hallucination Detection

Training data: s-nlp/EnokiQA

Installation
pip install torch "transformers>=4.48,<5" nltk
Usage
from transformers import AutoModel

model = AutoModel.from_pretrained(
    "s-nlp/enoki-openie-encoder",
    trust_remote_code=True,
)

results = model.extract_triples(
    "Apple acquired Beats Electronics for $3 billion in 2014.",
    min_confidence=0.7,
)
print(results)

Example output:

[
    {
        "sentence": "Apple acquired Beats Electronics for $3 billion in 2014.",
        "triples": [
            {
                "subject": "Apple",
                "relation": "acquired",
                "object": "Beats Electronics",
                "confidence": 0.969,
            },
            {
                "subject": "Apple",
                "relation": "acquired for",
                "object": "$3 billion",
                "confidence": 0.934,
            },
        ],
    }
]

For several sentences, pass a list to model.extract_triples([...]) .

Command line
python inference.py \
  --model s-nlp/enoki-openie-encoder \
  --text "Barack Obama was born in Honolulu." \
  --min-confidence 0.7
Notes
  • The model is designed for English text.
  • Pass one sentence per input item.
  • The default maximum sequence length is 128 tokens.
  • IGL can return nested or incremental triples. Use min_confidence=0.7–0.8 when a smaller, higher-precision result set is preferred.
  • Loading requires trust_remote_code=True because the IGL architecture and OpenIE decoder are custom Transformers code included in this repository.
Citation

If you use Enoki in your research, please cite:

@misc{rykov2026enokiefficientmultilevelhallucination,
  title         = {Enoki: Efficient Multi-Level Hallucination Detection},
  author        = {Elisei Rykov and Timur Ionov and Nikolay Ivanov and Maksim Savkin and Maksim Makarenko and Alexander Panchenko and Vasily Konovalov and Julia Belikova},
  year          = {2026},
  eprint        = {2609.00581},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2609.00581},
}

Runs of s-nlp enoki-openie-encoder on huggingface.co

132
Total runs
0
24-hour runs
-52
3-day runs
-99
7-day runs
22
30-day runs

More Information About enoki-openie-encoder huggingface.co Model

enoki-openie-encoder huggingface.co

enoki-openie-encoder huggingface.co is an AI model on huggingface.co that provides enoki-openie-encoder's model effect (), which can be used instantly with this s-nlp enoki-openie-encoder model. huggingface.co supports a free trial of the enoki-openie-encoder model, and also provides paid use of the enoki-openie-encoder. Support call enoki-openie-encoder model through api, including Node.js, Python, http.

enoki-openie-encoder huggingface.co Url

https://huggingface.co/s-nlp/enoki-openie-encoder

s-nlp enoki-openie-encoder online free

enoki-openie-encoder huggingface.co is an online trial and call api platform, which integrates enoki-openie-encoder's modeling effects, including api services, and provides a free online trial of enoki-openie-encoder, you can try enoki-openie-encoder online for free by clicking the link below.

s-nlp enoki-openie-encoder online free url in huggingface.co:

https://huggingface.co/s-nlp/enoki-openie-encoder

enoki-openie-encoder install

enoki-openie-encoder is an open source model from GitHub that offers a free installation service, and any user can find enoki-openie-encoder on GitHub to install. At the same time, huggingface.co provides the effect of enoki-openie-encoder install, users can directly use enoki-openie-encoder installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

enoki-openie-encoder install url in huggingface.co:

https://huggingface.co/s-nlp/enoki-openie-encoder

Url of enoki-openie-encoder

enoki-openie-encoder huggingface.co Url

Provider of enoki-openie-encoder huggingface.co

s-nlp
ORGANIZATIONS

Other API from s-nlp

huggingface.co

Total runs: 32
Run Growth: 23
Growth Rate: 71.88%
Updated:September 08 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:June 25 2024