pub fn from_pretrained(name_url_tuple: (&str, &str)) -> RemoteResource {
        let name = name_url_tuple.0.to_string();
        let url = name_url_tuple.1.to_string();
        RemoteResource {
            url,
            cache_subdir: name,
        }
    }
/// Creates a new RemoteResource from an URL and local name. Will define a local path pointing to
/// ~/.cache/.rusbert/model_name. Note that this does not download the resource (only declares
/// the remote and local locations)
///
/// # Arguments
///
/// * `name_url_tuple` - `(&str, &str)` Location of the name of model and remote resource
///
/// # Returns
///
/// * `RemoteResource` RemoteResource object
///
/// # Example
///
/// ```no_run
/// use rust_bert::resources::{RemoteResource, Resource};
/// let model_resource = Resource::Remote(RemoteResource::from_pretrained((
///     "distilbert-sst2",
///     "https://cdn.huggingface.co/distilbert-base-uncased-finetuned-sst-2-english-rust_model.ot",
/// )));
/// ```
Creates a new RemoteResource from an URL and local name. Will define a local path pointing to
~/.cache/.rusbert/model_name. Note that this does not download the resource (only declares
the remote and local locations)
Creates a new RemoteResource from an URL and local name . Will define a local path pointing to ~ / . cache / . rusbert / model_name . Note that this does not download the resource ( only declares the remote and local locations )
pub fn from_pretrained(name_url_tuple: (&str, &str)) -> RemoteResource {
        let name = name_url_tuple.0.to_string();
        let url = name_url_tuple.1.to_string();
        RemoteResource {
            url,
            cache_subdir: name,
        }
    }
pub fn from_pretrained ( name_url_tuple : ( & str , & str ) ) -> RemoteResource { let name = name_url_tuple . 0 . to_string ( ) ; let url = name_url_tuple . 1 . to_string ( ) ; RemoteResource { url , cache_subdir : name , } }
Creates a new RemoteResource from an URL and local name.
Creates a new RemoteResource from an URL and local name .
name_url_tuple
(&str, &str)
`RemoteResource` RemoteResource object
` RemoteResource ` RemoteResource object
name_url_tuple
(&str, &str)
example
None