pub fn new(
        model_type: ModelType,
        model_resource: Resource,
        config_resource: Resource,
        vocab_resource: Resource,
        merges_resource: Option<Resource>,
        lower_case: bool,
        strip_accents: impl Into<Option<bool>>,
        add_prefix_space: impl Into<Option<bool>>,
    ) -> ZeroShotClassificationConfig {
        ZeroShotClassificationConfig {
            model_type,
            model_resource,
            config_resource,
            vocab_resource,
            merges_resource,
            lower_case,
            strip_accents: strip_accents.into(),
            add_prefix_space: add_prefix_space.into(),
            device: Device::cuda_if_available(),
        }
    }
/// Instantiate a new zero shot classification configuration of the supplied type.
///
/// # Arguments
///
/// * `model_type` - `ModelType` indicating the model type to load (must match with the actual data to be loaded!)
/// * model - The `Resource` pointing to the model to load (e.g.  model.ot)
/// * config - The `Resource' pointing to the model configuration to load (e.g. config.json)
/// * vocab - The `Resource' pointing to the tokenizer's vocabulary to load (e.g.  vocab.txt/vocab.json)
/// * vocab - An optional `Resource` tuple (`Option<Resource>`) pointing to the tokenizer's merge file to load (e.g.  merges.txt), needed only for Roberta.
/// * lower_case - A `bool' indicating whether the tokeniser should lower case all input (in case of a lower-cased model)
Instantiate a new zero shot classification configuration of the supplied type.
Instantiate a new zero shot classification configuration of the supplied type .
pub fn new(
        model_type: ModelType,
        model_resource: Resource,
        config_resource: Resource,
        vocab_resource: Resource,
        merges_resource: Option<Resource>,
        lower_case: bool,
        strip_accents: impl Into<Option<bool>>,
        add_prefix_space: impl Into<Option<bool>>,
    ) -> ZeroShotClassificationConfig {
        ZeroShotClassificationConfig {
            model_type,
            model_resource,
            config_resource,
            vocab_resource,
            merges_resource,
            lower_case,
            strip_accents: strip_accents.into(),
            add_prefix_space: add_prefix_space.into(),
            device: Device::cuda_if_available(),
        }
    }
pub fn new ( model_type : ModelType , model_resource : Resource , config_resource : Resource , vocab_resource : Resource , merges_resource : Option < Resource > , lower_case : bool , strip_accents : impl Into < Option < bool > > , add_prefix_space : impl Into < Option < bool > > , ) -> ZeroShotClassificationConfig { ZeroShotClassificationConfig { model_type , model_resource , config_resource , vocab_resource , merges_resource , lower_case , strip_accents : strip_accents . into ( ) , add_prefix_space : add_prefix_space . into ( ) , device : Device :: cuda_if_available ( ) , } }
Instantiate a new zero shot classification configuration of the supplied type.
Instantiate a new zero shot classification configuration of the supplied type .
model_type
ModelType
model_resource
Resource
config_resource
Resource
vocab_resource
Resource
merges_resource
Option<Resource>
lower_case
bool
strip_accents
impl Into<Option<bool>>
add_prefix_space
impl Into<Option<bool>>
model_type
ModelType
model_resource
Resource
config_resource
Resource
vocab_resource
Resource
merges_resource
Option<Resource>
lower_case
bool
strip_accents
impl Into<Option<bool>>
add_prefix_space
impl Into<Option<bool>>