Instructions to use TurkuNLP/web-register-classification-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TurkuNLP/web-register-classification-multilingual with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TurkuNLP/web-register-classification-multilingual")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TurkuNLP/web-register-classification-multilingual") model = AutoModelForSequenceClassification.from_pretrained("TurkuNLP/web-register-classification-multilingual", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,496 Bytes
9f296c7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | {
"_name_or_path": "xlm-roberta-large",
"architectures": [
"XLMRobertaForSequenceClassification"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 0,
"classifier_dropout": null,
"eos_token_id": 2,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 1024,
"id2label": {
"0": "MT",
"1": "LY",
"2": "SP",
"3": "ID",
"4": "NA",
"5": "HI",
"6": "IN",
"7": "OP",
"8": "IP",
"9": "it",
"10": "ne",
"11": "sr",
"12": "nb",
"13": "re",
"14": "en",
"15": "ra",
"16": "dtp",
"17": "fi",
"18": "lt",
"19": "rv",
"20": "ob",
"21": "rs",
"22": "av",
"23": "ds",
"24": "ed"
},
"initializer_range": 0.02,
"intermediate_size": 4096,
"label2id": {
"HI": 5,
"ID": 3,
"IN": 6,
"IP": 8,
"LY": 1,
"MT": 0,
"NA": 4,
"OP": 7,
"SP": 2,
"av": 22,
"ds": 23,
"dtp": 16,
"ed": 24,
"en": 14,
"fi": 17,
"it": 9,
"lt": 18,
"nb": 12,
"ne": 10,
"ob": 20,
"ra": 15,
"re": 13,
"rs": 21,
"rv": 19,
"sr": 11
},
"layer_norm_eps": 1e-05,
"max_position_embeddings": 514,
"model_type": "xlm-roberta",
"num_attention_heads": 16,
"num_hidden_layers": 24,
"output_past": true,
"pad_token_id": 1,
"position_embedding_type": "absolute",
"torch_dtype": "bfloat16",
"transformers_version": "4.39.3",
"type_vocab_size": 1,
"use_cache": true,
"vocab_size": 250002
}
|