pub enum BytePairEncoderError {
InvalidFile(String),
InvalidVocabularyInput,
DecompressionError(String),
DeserializationError(String),
NoDefaultVocabFeature,
}
Expand description
Represents errors that can occur during BPE tokenization operations.
Variants§
InvalidFile(String)
Indicates an error occurred while reading the vocabulary file.
InvalidVocabularyInput
Indicates that the vocabulary input was invalid or could not be parsed correctly.
DecompressionError(String)
Indicates an error occurred during decompression of the vocabulary data.
DeserializationError(String)
Indicates an error occurred during deserialization of the vocabulary data.
NoDefaultVocabFeature
Trait Implementations§
Source§impl Clone for BytePairEncoderError
impl Clone for BytePairEncoderError
Source§fn clone(&self) -> BytePairEncoderError
fn clone(&self) -> BytePairEncoderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BytePairEncoderError
impl Debug for BytePairEncoderError
Source§impl Display for BytePairEncoderError
impl Display for BytePairEncoderError
Source§impl Error for BytePairEncoderError
impl Error for BytePairEncoderError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for BytePairEncoderError
impl PartialEq for BytePairEncoderError
impl Eq for BytePairEncoderError
impl StructuralPartialEq for BytePairEncoderError
Auto Trait Implementations§
impl Freeze for BytePairEncoderError
impl RefUnwindSafe for BytePairEncoderError
impl Send for BytePairEncoderError
impl Sync for BytePairEncoderError
impl Unpin for BytePairEncoderError
impl UnwindSafe for BytePairEncoderError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more