-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathCargo.toml
70 lines (60 loc) · 1.35 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
[package]
name = "sbert"
version = "0.5.0"
authors = ["Chady Dimachkie <[email protected]>"]
edition = "2018"
description = "Rust implementation of Sentence Bert (SBert)"
repository = "https://github.com/cpcdoy/rust-sbert"
keywords = ["nlp", "embedding", "bert", "sbert", "transformers"]
license = "Apache-2.0"
readme = "README.md"
include = ["src/", "Cargo.toml", "build.rs"]
[dependencies]
lazy_static = "1.4"
log = "0.4"
num_cpus = "1.13"
prost = "0.9"
rayon = "1.5"
rust-bert = { git = "https://github.com/guillaume-be/rust-bert", rev = "29f9a7a", default-features = false }
rust_tokenizers = "7.0"
serde = "1.0"
strum = "0.23"
strum_macros = "0.23"
tch = "0.15.0"
thiserror = "1.0"
tokenizers = "0.15"
torch-sys = "0.15.0"
[dev-dependencies]
criterion = "0.3"
rand = "0.8"
[features]
doc-only = ["tch/doc-only"]
all-tests = []
[package.metadata.docs.rs]
features = ["doc-only"]
[lib]
name = "sbert"
path = "src/lib.rs"
crate-type = ["lib"]
[[bin]]
name = "convert-tensor"
path = "src/bin/convert-tensor.rs"
doc = false
[[test]]
name = "sbert_test"
path = "tests/test_sbert.rs"
doc = false
[[test]]
name = "distilroberta_test"
path = "tests/test_distilroberta.rs"
doc = false
[[bench]]
name = "sbert_bench"
path = "benches/bench_sbert.rs"
harness = false
doc = false
[[bench]]
name = "distilroberta_bench"
path = "benches/bench_distilroberta.rs"
harness = false
doc = false