Instructions to use Alaeddin/convbert-base-turkish-ner-cased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Alaeddin/convbert-base-turkish-ner-cased with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Alaeddin/convbert-base-turkish-ner-cased")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Alaeddin/convbert-base-turkish-ner-cased") model = AutoModelForTokenClassification.from_pretrained("Alaeddin/convbert-base-turkish-ner-cased", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from Alaeddin/convbert-base-turkish-ner-cased: direct link, hf CLI and curl.
- Browser
- Download file 976 Bytes
-
https://huggingface.co/Alaeddin/convbert-base-turkish-ner-cased/resolve/main/config.json
- Command line
-
hf download hf://Alaeddin/convbert-base-turkish-ner-cased/config.json
-
curl -L -o config.json https://huggingface.co/Alaeddin/convbert-base-turkish-ner-cased/resolve/main/config.json
976 Bytes
| { | |
| "_name_or_path": "dbmdz/convbert-base-turkish-cased", | |
| "architectures": [ | |
| "ConvBertForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "bos_token_id": 0, | |
| "conv_kernel_size": 9, | |
| "embedding_size": 768, | |
| "eos_token_id": 2, | |
| "finetuning_task": "ner", | |
| "head_ratio": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "B-LOC", | |
| "1": "B-ORG", | |
| "2": "B-PER", | |
| "3": "I-LOC", | |
| "4": "I-ORG", | |
| "5": "I-PER", | |
| "6": "O" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "B-LOC": 0, | |
| "B-ORG": 1, | |
| "B-PER": 2, | |
| "I-LOC": 3, | |
| "I-ORG": 4, | |
| "I-PER": 5, | |
| "O": 6 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "convbert", | |
| "num_attention_heads": 12, | |
| "num_groups": 1, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "transformers_version": "4.6.0.dev0", | |
| "type_vocab_size": 2, | |
| "vocab_size": 32000 | |
| } | |