Skip to content

Commit

Permalink
Move vocabulary and token processor to dedicated module
Browse files Browse the repository at this point in the history
  • Loading branch information
torymur committed Nov 8, 2024
1 parent e85ce90 commit 6610052
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pub mod regex;
pub mod vocabulary;

mod locator;
mod processor;

#[cfg(feature = "python-bindings")]
mod python_bindings;
Expand Down
5 changes: 4 additions & 1 deletion src/vocabulary.rs → src/vocabulary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ use tokenizers::{FromPretrainedParameters, NormalizerWrapper, Tokenizer};

use crate::locator::EosTokenLocator;
use crate::prelude::*;
use crate::processor::TokenProcessor;
use crate::VocabularyError;

use processor::TokenProcessor;

mod processor;

/// Vocabulary of an LLM.
///
/// ## Examples
Expand Down
File renamed without changes.

0 comments on commit 6610052

Please sign in to comment.