pub type Token = Vec<u8>;
pub type TokenId = u32;
#[cfg(feature = "huggingface-hub")]
pub use tokenizers::FromPretrainedParameters;
mod build;
mod canonical;
mod error;
#[cfg(feature = "huggingface-hub")]
mod locator;
mod prepared;
#[cfg(feature = "tokenizer-processing")]
mod processor;
mod vocabulary;
#[cfg(feature = "tokenizer-processing")]
pub use build::build_vocabulary_from_tokenizer_json;
pub use build::{build_vocabulary, build_vocabulary_from_str_keys, StringTokenMap, TokenMap};
pub(crate) use canonical::CanonicalVocabulary;
pub(crate) use prepared::{projected_peak_bytes, try_alloc, PreparedVocabulary};
pub use vocabulary::Vocabulary;