Skip to content

Commit

Permalink
Fixing the README. (#1714)
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil authored Jan 8, 2025
1 parent 3a6504d commit 166edd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tokenizers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
//! fn main() -> Result<()> {
//! # #[cfg(feature = "http")]
//! # {
//! let tokenizer = Tokenizer::from_pretrained("bert-base-cased", None)?;
//! // needs http feature enabled
//! let tokenizer = Tokenizer::from_pretrained("bert-base-cased", None)?;
//!
//! let encoding = tokenizer.encode("Hey there!", false)?;
//! println!("{:?}", encoding.get_tokens());
//! let encoding = tokenizer.encode("Hey there!", false)?;
//! println!("{:?}", encoding.get_tokens());
//! # }
//! Ok(())
//! }
Expand Down

0 comments on commit 166edd8

Please sign in to comment.