Instructions to use Shenzy2/NER4DesignTutor with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Shenzy2/NER4DesignTutor with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Shenzy2/NER4DesignTutor")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Shenzy2/NER4DesignTutor") model = AutoModelForTokenClassification.from_pretrained("Shenzy2/NER4DesignTutor") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -35,9 +35,9 @@ Or Python API:
|
|
| 35 |
```
|
| 36 |
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
| 37 |
|
| 38 |
-
model = AutoModelForTokenClassification.from_pretrained("Shenzy2/NER4DesignTutor"
|
| 39 |
|
| 40 |
-
tokenizer = AutoTokenizer.from_pretrained("Shenzy2/NER4DesignTutor"
|
| 41 |
|
| 42 |
inputs = tokenizer("Why is the username the largest part of each card?", return_tensors="pt")
|
| 43 |
|
|
|
|
| 35 |
```
|
| 36 |
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
| 37 |
|
| 38 |
+
model = AutoModelForTokenClassification.from_pretrained("Shenzy2/NER4DesignTutor")
|
| 39 |
|
| 40 |
+
tokenizer = AutoTokenizer.from_pretrained("Shenzy2/NER4DesignTutor")
|
| 41 |
|
| 42 |
inputs = tokenizer("Why is the username the largest part of each card?", return_tensors="pt")
|
| 43 |
|