Instructions to use nono1224/intro-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nono1224/intro-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="nono1224/intro-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("nono1224/intro-ner") model = AutoModelForTokenClassification.from_pretrained("nono1224/intro-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from nono1224/intro-ner: direct link, hf CLI and curl.
- Browser
- Download file 1.93 kB
-
https://huggingface.co/nono1224/intro-ner/resolve/main/config.json
- Command line
-
hf download hf://nono1224/intro-ner/config.json
-
curl -L -o config.json https://huggingface.co/nono1224/intro-ner/resolve/main/config.json
1.93 kB
| { | |
| "_name_or_path": "cl-tohoku/bert-base-japanese-v3", | |
| "architectures": [ | |
| "BertForTokenClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "O", | |
| "1": "B-\u305d\u306e\u4ed6\u306e\u7d44\u7e54\u540d", | |
| "2": "I-\u305d\u306e\u4ed6\u306e\u7d44\u7e54\u540d", | |
| "3": "B-\u30a4\u30d9\u30f3\u30c8\u540d", | |
| "4": "I-\u30a4\u30d9\u30f3\u30c8\u540d", | |
| "5": "B-\u4eba\u540d", | |
| "6": "I-\u4eba\u540d", | |
| "7": "B-\u5730\u540d", | |
| "8": "I-\u5730\u540d", | |
| "9": "B-\u653f\u6cbb\u7684\u7d44\u7e54\u540d", | |
| "10": "I-\u653f\u6cbb\u7684\u7d44\u7e54\u540d", | |
| "11": "B-\u65bd\u8a2d\u540d", | |
| "12": "I-\u65bd\u8a2d\u540d", | |
| "13": "B-\u6cd5\u4eba\u540d", | |
| "14": "I-\u6cd5\u4eba\u540d", | |
| "15": "B-\u88fd\u54c1\u540d", | |
| "16": "I-\u88fd\u54c1\u540d" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "B-\u305d\u306e\u4ed6\u306e\u7d44\u7e54\u540d": 1, | |
| "B-\u30a4\u30d9\u30f3\u30c8\u540d": 3, | |
| "B-\u4eba\u540d": 5, | |
| "B-\u5730\u540d": 7, | |
| "B-\u653f\u6cbb\u7684\u7d44\u7e54\u540d": 9, | |
| "B-\u65bd\u8a2d\u540d": 11, | |
| "B-\u6cd5\u4eba\u540d": 13, | |
| "B-\u88fd\u54c1\u540d": 15, | |
| "I-\u305d\u306e\u4ed6\u306e\u7d44\u7e54\u540d": 2, | |
| "I-\u30a4\u30d9\u30f3\u30c8\u540d": 4, | |
| "I-\u4eba\u540d": 6, | |
| "I-\u5730\u540d": 8, | |
| "I-\u653f\u6cbb\u7684\u7d44\u7e54\u540d": 10, | |
| "I-\u65bd\u8a2d\u540d": 12, | |
| "I-\u6cd5\u4eba\u540d": 14, | |
| "I-\u88fd\u54c1\u540d": 16, | |
| "O": 0 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "pad_token_id": 0, | |
| "position_embedding_type": "absolute", | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.45.1", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 32768 | |
| } | |