fn default() -> TokenClassificationConfig {
        TokenClassificationConfig {
            model_type: ModelType::Bert,
            model_resource: Resource::Remote(RemoteResource::from_pretrained(
                BertModelResources::BERT_NER,
            )),
            config_resource: Resource::Remote(RemoteResource::from_pretrained(
                BertConfigResources::BERT_NER,
            )),
            vocab_resource: Resource::Remote(RemoteResource::from_pretrained(
                BertVocabResources::BERT_NER,
            )),
            merges_resource: None,
            lower_case: false,
            strip_accents: None,
            add_prefix_space: None,
            device: Device::cuda_if_available(),
            label_aggregation_function: LabelAggregationOption::First,
        }
    }
/// Provides a default CoNLL-2003 NER model (English)
Provides a default CoNLL-2003 NER model (English)
Provides a default CoNLL - 2003 NER model ( English )
fn default() -> TokenClassificationConfig {
        TokenClassificationConfig {
            model_type: ModelType::Bert,
            model_resource: Resource::Remote(RemoteResource::from_pretrained(
                BertModelResources::BERT_NER,
            )),
            config_resource: Resource::Remote(RemoteResource::from_pretrained(
                BertConfigResources::BERT_NER,
            )),
            vocab_resource: Resource::Remote(RemoteResource::from_pretrained(
                BertVocabResources::BERT_NER,
            )),
            merges_resource: None,
            lower_case: false,
            strip_accents: None,
            add_prefix_space: None,
            device: Device::cuda_if_available(),
            label_aggregation_function: LabelAggregationOption::First,
        }
    }
fn default ( ) -> TokenClassificationConfig { TokenClassificationConfig { model_type : ModelType :: Bert , model_resource : Resource :: Remote ( RemoteResource :: from_pretrained ( BertModelResources :: BERT_NER , ) ) , config_resource : Resource :: Remote ( RemoteResource :: from_pretrained ( BertConfigResources :: BERT_NER , ) ) , vocab_resource : Resource :: Remote ( RemoteResource :: from_pretrained ( BertVocabResources :: BERT_NER , ) ) , merges_resource : None , lower_case : false , strip_accents : None , add_prefix_space : None , device : Device :: cuda_if_available ( ) , label_aggregation_function : LabelAggregationOption :: First , } }
Provides a default CoNLL-2003 NER model (English)
Provides a default CoNLL - 2003 NER model ( English )