We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
let model_resource = RemoteResource::from_pretrained(("distiluse-base-multilingual-cased","https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased/blob/main/rust_model.ot")); let config_resource = RemoteResource::from_pretrained(("distiluse-base-multilingual-cased","https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased/blob/main/config.json")); let vocab_resource = RemoteResource::from_pretrained(("distiluse-base-multilingual-cased","https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased/blob/main/vocab.txt")); let config = ZeroShotClassificationConfig::new(ModelType::DistilBert, ModelResource::Torch(Box::new(model_resource)), config_resource, vocab_resource, None, true, None, None ); let tokenizer_file_path = PathBuf::from("/root/rust-bert/model/tokenizer.json"); let special_token_map_path = PathBuf::from("/root/rust-bert/model/special_token_map.json"); let tokenizer = HFTokenizer::from_file(tokenizer_file_path, special_token_map_path)?; let sequence_classification_model = ZeroShotClassificationModel::new_with_tokenizer(config,TokenizerOption::HFTokenizer(tokenizer))?;
cargo run --package rust-bert --example zero_shot_classification --features="hf-tokenizers" Error: Tokenizer error: expected value at line 1 column 1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
let model_resource = RemoteResource::from_pretrained(("distiluse-base-multilingual-cased","https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased/blob/main/rust_model.ot"));
let config_resource = RemoteResource::from_pretrained(("distiluse-base-multilingual-cased","https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased/blob/main/config.json"));
let vocab_resource = RemoteResource::from_pretrained(("distiluse-base-multilingual-cased","https://huggingface.co/sentence-transformers/distiluse-base-multilingual-cased/blob/main/vocab.txt"));
let config = ZeroShotClassificationConfig::new(ModelType::DistilBert,
ModelResource::Torch(Box::new(model_resource)),
config_resource,
vocab_resource,
None,
true,
None,
None
);
let tokenizer_file_path = PathBuf::from("/root/rust-bert/model/tokenizer.json");
let special_token_map_path = PathBuf::from("/root/rust-bert/model/special_token_map.json");
let tokenizer = HFTokenizer::from_file(tokenizer_file_path, special_token_map_path)?;
let sequence_classification_model = ZeroShotClassificationModel::new_with_tokenizer(config,TokenizerOption::HFTokenizer(tokenizer))?;
cargo run --package rust-bert --example zero_shot_classification --features="hf-tokenizers"
Error: Tokenizer error: expected value at line 1 column 1
The text was updated successfully, but these errors were encountered: