Instructions to use philipobiorah/bert-imdb-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use philipobiorah/bert-imdb-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="philipobiorah/bert-imdb-model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("philipobiorah/bert-imdb-model") model = AutoModelForSequenceClassification.from_pretrained("philipobiorah/bert-imdb-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Create tokenizer_config.json
Browse files- tokenizer_config.json +9 -0
tokenizer_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_lower_case": true,
|
| 3 |
+
"max_len": 512,
|
| 4 |
+
"model_max_length": 512,
|
| 5 |
+
"padding_side": "right",
|
| 6 |
+
"special_tokens_map_file": "special_tokens_map.json",
|
| 7 |
+
"tokenizer_class": "BertTokenizer",
|
| 8 |
+
"use_fast": true
|
| 9 |
+
}
|