Instructions to use DeepNeural/ner_classifier_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DeepNeural/ner_classifier_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="DeepNeural/ner_classifier_v2")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("DeepNeural/ner_classifier_v2") model = AutoModelForTokenClassification.from_pretrained("DeepNeural/ner_classifier_v2") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -52,7 +52,16 @@ The following hyperparameters were used during training:
|
|
| 52 |
|
| 53 |
### Loading the model
|
| 54 |
```
|
| 55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
```
|
| 58 |
|
|
|
|
| 52 |
|
| 53 |
### Loading the model
|
| 54 |
```
|
| 55 |
+
# Use a pipeline as a high-level helper
|
| 56 |
+
from transformers import pipeline
|
| 57 |
+
|
| 58 |
+
pipe = pipeline("token-classification", model="DeepNeural/ner_classifier_v2")
|
| 59 |
+
|
| 60 |
+
# Load model directly
|
| 61 |
+
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 62 |
+
|
| 63 |
+
tokenizer = AutoTokenizer.from_pretrained("DeepNeural/ner_classifier_v2")
|
| 64 |
+
model = AutoModelForTokenClassification.from_pretrained("DeepNeural/ner_classifier_v2")
|
| 65 |
|
| 66 |
```
|
| 67 |
|