usethiserror::Error;/// Errors produced by crftag operations.
#[derive(Debug, Error)]pubenumError{/// The model has not been loaded yet.
#[error("model is not loaded — call load_model() first")]
ModelNotLoaded,/// Underlying CRF error.
#[error(transparent)]
Crf(#[from]crfrs::Error),}/// A specialized `Result` type for crftag operations.
pubtypeResult<T>=std::result::Result<T, Error>;