[package]
edition = "2021"
rust-version = "1.87"
name = "tranz"
version = "0.5.0"
authors = ["Arc <attobop@gmail.com>"]
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Point-embedding knowledge graph models: TransE, RotatE, ComplEx, DistMult. GPU training via candle."
readme = "README.md"
keywords = [
"knowledge-graph",
"embeddings",
"link-prediction",
]
categories = [
"science",
"algorithms",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/tranz"
[package.metadata.docs.rs]
features = ["candle"]
[features]
candle = [
"dep:candle-core",
"dep:candle-nn",
"rand",
]
cuda = [
"candle",
"candle-core/cuda",
]
default = ["rand"]
[lib]
name = "tranz"
path = "src/lib.rs"
[[bin]]
name = "tranz"
path = "src/bin/tranz.rs"
required-features = ["candle"]
[[example]]
name = "score"
path = "examples/score.rs"
[[example]]
name = "train_wn18rr"
path = "examples/train_wn18rr.rs"
required-features = ["candle"]
[[test]]
name = "properties"
path = "tests/properties.rs"
[dependencies.candle-core]
version = "0.9"
optional = true
[dependencies.candle-nn]
version = "0.9"
optional = true
[dependencies.lattix]
version = "0.6"
features = ["kge"]
default-features = false
[dependencies.rand]
version = "0.9"
optional = true
[dependencies.rayon]
version = "1"
[dependencies.thiserror]
version = "2"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.tempfile]
version = "3"
[lints.rust]
missing_docs = "warn"