Instructions to use dl-ru/rubert-tiny2-srl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dl-ru/rubert-tiny2-srl with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="dl-ru/rubert-tiny2-srl")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("dl-ru/rubert-tiny2-srl") model = AutoModelForTokenClassification.from_pretrained("dl-ru/rubert-tiny2-srl", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,819 Bytes
af83e18 92aa913 af83e18 92aa913 af83e18 9f9e1b6 af83e18 | 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 | {
"_name_or_path": "cointegrated/rubert-tiny2",
"architectures": [
"BertForTokenClassification"
],
"attention_probs_dropout_prob": 0.1,
"classifier_dropout": null,
"emb_size": 312,
"gradient_checkpointing": false,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 312,
"id2label": {
"0": "O",
"1": "B-Object",
"2": "B-Experiencer",
"3": "B-Cause",
"4": "B-Deliberative",
"5": "B-Causator",
"6": "B-ContrSubject",
"7": "B-Benefactive",
"8": "B-Addressee",
"9": "I-Object",
"10": "B-Destinative",
"11": "I-ContrSubject",
"12": "B-Instrument",
"13": "I-Deliberative",
"14": "B-Limitative",
"15": "B-DirectiveFinal",
"16": "B-Mediative",
"17": "I-DirectiveFinal",
"18": "B-DirectiveInitial",
"19": "I-DirectiveInitial",
"20": "I-Experiencer",
"21": "I-Cause"
},
"initializer_range": 0.02,
"intermediate_size": 600,
"label2id": {
"B-Addressee": 8,
"B-Benefactive": 7,
"B-Causator": 5,
"B-Cause": 3,
"B-ContrSubject": 6,
"B-Deliberative": 4,
"B-Destinative": 10,
"B-DirectiveFinal": 15,
"B-DirectiveInitial": 18,
"B-Experiencer": 2,
"B-Instrument": 12,
"B-Limitative": 14,
"B-Mediative": 16,
"B-Object": 1,
"I-Cause": 21,
"I-ContrSubject": 11,
"I-Deliberative": 13,
"I-DirectiveFinal": 17,
"I-DirectiveInitial": 19,
"I-Experiencer": 20,
"I-Object": 9,
"O": 0
},
"layer_norm_eps": 1e-12,
"max_position_embeddings": 2048,
"model_type": "bert",
"num_attention_heads": 12,
"num_hidden_layers": 3,
"pad_token_id": 0,
"position_embedding_type": "absolute",
"torch_dtype": "float32",
"transformers_version": "4.33.2",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 83828
}
|