Cargo Features

[dependencies]
hallucination-detection = { version = "0.1.5", default-features = false, features = ["ner", "download-onnx", "onnx"] }
default = ner

The ner feature is set by default whenever hallucination-detection is added without default-features = false somewhere in the dependency tree.

ner default = rust-bert

Affects hallucination-detection::EntityRecognizer

download-onnx

Enables download-binaries of optional ort

onnx = ort

Enables onnx of optional rust-bert

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

rust-bert ner
ort onnx?