Instructions to use GozdeA/finetuned-bertweet-pos2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GozdeA/finetuned-bertweet-pos2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="GozdeA/finetuned-bertweet-pos2", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("GozdeA/finetuned-bertweet-pos2") model = AutoModelForTokenClassification.from_pretrained("GozdeA/finetuned-bertweet-pos2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "activation": "gelu", | |
| "architectures": [ | |
| "DistilBertForTokenClassification" | |
| ], | |
| "attention_dropout": 0.1, | |
| "dim": 768, | |
| "dropout": 0.1, | |
| "hidden_dim": 3072, | |
| "id2label": { | |
| "0": "ADJ", | |
| "1": "ADP", | |
| "2": "ADV", | |
| "3": "AUX", | |
| "4": "CCONJ", | |
| "5": "DET", | |
| "6": "INTJ", | |
| "7": "NOUN", | |
| "8": "NUM", | |
| "9": "PART", | |
| "10": "PRON", | |
| "11": "PROPN", | |
| "12": "PUNCT", | |
| "13": "SCONJ", | |
| "14": "SYM", | |
| "15": "VERB", | |
| "16": "X" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "ADJ": 0, | |
| "ADP": 1, | |
| "ADV": 2, | |
| "AUX": 3, | |
| "CCONJ": 4, | |
| "DET": 5, | |
| "INTJ": 6, | |
| "NOUN": 7, | |
| "NUM": 8, | |
| "PART": 9, | |
| "PRON": 10, | |
| "PROPN": 11, | |
| "PUNCT": 12, | |
| "SCONJ": 13, | |
| "SYM": 14, | |
| "VERB": 15, | |
| "X": 16 | |
| }, | |
| "max_position_embeddings": 512, | |
| "model_type": "distilbert", | |
| "n_heads": 12, | |
| "n_layers": 6, | |
| "pad_token_id": 0, | |
| "qa_dropout": 0.1, | |
| "seq_classif_dropout": 0.2, | |
| "sinusoidal_pos_embds": false, | |
| "tie_weights_": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.50.2", | |
| "vocab_size": 30522 | |
| } | |