Instructions to use phanerozoic/BERT-NER-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use phanerozoic/BERT-NER-Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="phanerozoic/BERT-NER-Classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("phanerozoic/BERT-NER-Classifier") model = AutoModelForTokenClassification.from_pretrained("phanerozoic/BERT-NER-Classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update tokenizer_config.json
Browse files- tokenizer_config.json +5 -1
tokenizer_config.json
CHANGED
|
@@ -10,5 +10,9 @@
|
|
| 10 |
"strip_accents": null,
|
| 11 |
"do_basic_tokenize": true,
|
| 12 |
"clean_up_tokenization_spaces": false,
|
| 13 |
-
"tokenizer_class": "BertTokenizer"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
}
|
|
|
|
| 10 |
"strip_accents": null,
|
| 11 |
"do_basic_tokenize": true,
|
| 12 |
"clean_up_tokenization_spaces": false,
|
| 13 |
+
"tokenizer_class": "BertTokenizer",
|
| 14 |
+
"special_tokens_map_file": null,
|
| 15 |
+
"max_len": 512,
|
| 16 |
+
"max_len_single_sentence": 510,
|
| 17 |
+
"max_len_sentences_pair": 506
|
| 18 |
}
|