-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathCargo.toml
More file actions
42 lines (37 loc) · 1.24 KB
/
Cargo.toml
File metadata and controls
42 lines (37 loc) · 1.24 KB
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
[package]
name = "model2vec-rs"
version = "0.1.4"
edition = "2021"
description = "Official Rust Implementation of Model2Vec"
readme = "README.md"
license-file = "LICENSE"
authors = ["Thomas van Dongen <thomas123@live.nl>", "Stéphan Tulkens <stephantul@gmail.com>"]
homepage = "https://github.com/MinishLab/model2vec-rs"
repository = "https://github.com/MinishLab/model2vec-rs"
keywords = ["embeddings", "model2vec", "nlp", "rust"]
categories = ["science", "text-processing"]
exclude = ["tests/*"]
[features]
default = ["onig", "hf-hub"]
hf-hub = ["dep:hf-hub"]
local-only = []
onig = ["tokenizers/onig",
"tokenizers/progressbar",
"tokenizers/esaxx_fast"]
fancy-regex = ["tokenizers/fancy-regex",
"tokenizers/progressbar",
"tokenizers/esaxx_fast"]
wasm = ["local-only",
"tokenizers/unstable_wasm"]
[dependencies]
tokenizers = { version = "0.21", default-features = false }
safetensors = "0.5"
ndarray = "0.15"
hf-hub = { version = "0.4", default-features = false, features = ["ureq"], optional = true }
clap = { version = "4.0", features = ["derive"] }
anyhow = "1.0"
serde_json = "1.0"
half = "2.0"
[dev-dependencies]
approx = "0.5"
serde_json = "1.0"