fn default() -> ZeroShotClassificationConfig {
        ZeroShotClassificationConfig {
            model_type: ModelType::Bart,
            model_resource: Resource::Remote(RemoteResource::from_pretrained(
                BartModelResources::BART_MNLI,
            )),
            config_resource: Resource::Remote(RemoteResource::from_pretrained(
                BartConfigResources::BART_MNLI,
            )),
            vocab_resource: Resource::Remote(RemoteResource::from_pretrained(
                BartVocabResources::BART_MNLI,
            )),
            merges_resource: Some(Resource::Remote(RemoteResource::from_pretrained(
                BartMergesResources::BART_MNLI,
            ))),
            lower_case: false,
            strip_accents: None,
            add_prefix_space: None,
            device: Device::cuda_if_available(),
        }
    }
/// Provides a defaultSST-2 sentiment analysis model (English)
Provides a defaultSST-2 sentiment analysis model (English)
Provides a defaultSST - 2 sentiment analysis model ( English )
fn default() -> ZeroShotClassificationConfig {
        ZeroShotClassificationConfig {
            model_type: ModelType::Bart,
            model_resource: Resource::Remote(RemoteResource::from_pretrained(
                BartModelResources::BART_MNLI,
            )),
            config_resource: Resource::Remote(RemoteResource::from_pretrained(
                BartConfigResources::BART_MNLI,
            )),
            vocab_resource: Resource::Remote(RemoteResource::from_pretrained(
                BartVocabResources::BART_MNLI,
            )),
            merges_resource: Some(Resource::Remote(RemoteResource::from_pretrained(
                BartMergesResources::BART_MNLI,
            ))),
            lower_case: false,
            strip_accents: None,
            add_prefix_space: None,
            device: Device::cuda_if_available(),
        }
    }
fn default ( ) -> ZeroShotClassificationConfig { ZeroShotClassificationConfig { model_type : ModelType :: Bart , model_resource : Resource :: Remote ( RemoteResource :: from_pretrained ( BartModelResources :: BART_MNLI , ) ) , config_resource : Resource :: Remote ( RemoteResource :: from_pretrained ( BartConfigResources :: BART_MNLI , ) ) , vocab_resource : Resource :: Remote ( RemoteResource :: from_pretrained ( BartVocabResources :: BART_MNLI , ) ) , merges_resource : Some ( Resource :: Remote ( RemoteResource :: from_pretrained ( BartMergesResources :: BART_MNLI , ) ) ) , lower_case : false , strip_accents : None , add_prefix_space : None , device : Device :: cuda_if_available ( ) , } }
Provides a defaultSST-2 sentiment analysis model (English)
Provides a defaultSST - 2 sentiment analysis model ( English )