Instructions to use kinit/slovakbert-pos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kinit/slovakbert-pos with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="kinit/slovakbert-pos")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("kinit/slovakbert-pos") model = AutoModelForTokenClassification.from_pretrained("kinit/slovakbert-pos", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
202da0a
1
Parent(s): 93e98df
add model
Browse files- config.json +66 -0
- pytorch_model.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "kinit/slovakbert-pos",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"RobertaForTokenClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"bos_token_id": 0,
|
| 8 |
+
"classifier_dropout": null,
|
| 9 |
+
"eos_token_id": 2,
|
| 10 |
+
"gradient_checkpointing": false,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"id2label": {
|
| 15 |
+
"0": "ADJ",
|
| 16 |
+
"1": "ADP",
|
| 17 |
+
"2": "ADV",
|
| 18 |
+
"3": "AUX",
|
| 19 |
+
"4": "CCONJ",
|
| 20 |
+
"5": "DET",
|
| 21 |
+
"6": "INTJ",
|
| 22 |
+
"7": "NOUN",
|
| 23 |
+
"8": "NUM",
|
| 24 |
+
"9": "PART",
|
| 25 |
+
"10": "PRON",
|
| 26 |
+
"11": "PROPN",
|
| 27 |
+
"12": "PUNCT",
|
| 28 |
+
"13": "SCONJ",
|
| 29 |
+
"14": "SYM",
|
| 30 |
+
"15": "VERB",
|
| 31 |
+
"16": "X"
|
| 32 |
+
},
|
| 33 |
+
"initializer_range": 0.02,
|
| 34 |
+
"intermediate_size": 3072,
|
| 35 |
+
"label2id": {
|
| 36 |
+
"ADJ": "0",
|
| 37 |
+
"ADP": "1",
|
| 38 |
+
"ADV": "2",
|
| 39 |
+
"AUX": "3",
|
| 40 |
+
"CCONJ": "4",
|
| 41 |
+
"DET": "5",
|
| 42 |
+
"INTJ": "6",
|
| 43 |
+
"NOUN": "7",
|
| 44 |
+
"NUM": "8",
|
| 45 |
+
"PART": "9",
|
| 46 |
+
"PRON": "10",
|
| 47 |
+
"PROPN": "11",
|
| 48 |
+
"PUNCT": "12",
|
| 49 |
+
"SCONJ": "13",
|
| 50 |
+
"SYM": "14",
|
| 51 |
+
"VERB": "15",
|
| 52 |
+
"X": "16"
|
| 53 |
+
},
|
| 54 |
+
"layer_norm_eps": 1e-05,
|
| 55 |
+
"max_position_embeddings": 514,
|
| 56 |
+
"model_type": "roberta",
|
| 57 |
+
"num_attention_heads": 12,
|
| 58 |
+
"num_hidden_layers": 12,
|
| 59 |
+
"pad_token_id": 1,
|
| 60 |
+
"position_embedding_type": "absolute",
|
| 61 |
+
"torch_dtype": "float32",
|
| 62 |
+
"transformers_version": "4.12.2",
|
| 63 |
+
"type_vocab_size": 1,
|
| 64 |
+
"use_cache": true,
|
| 65 |
+
"vocab_size": 50264
|
| 66 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11162771dd7dda3eeb128c9f72a86fa19d833e7e2fa87ee7b453aa2f4e2bbdef
|
| 3 |
+
size 496353991
|