Instructions to use tner/roberta-large-conll2003 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tner/roberta-large-conll2003 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="tner/roberta-large-conll2003")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("tner/roberta-large-conll2003") model = AutoModelForTokenClassification.from_pretrained("tner/roberta-large-conll2003") - Notebooks
- Google Colab
- Kaggle
model update
Browse files
README.md
CHANGED
|
@@ -92,7 +92,7 @@ Install the library via pip
|
|
| 92 |
pip install tner
|
| 93 |
```
|
| 94 |
and activate model as below.
|
| 95 |
-
```
|
| 96 |
from tner import TransformersNER
|
| 97 |
model = TransformersNER("tner/roberta-large-conll2003")
|
| 98 |
model.predict("Jacob Collier is a Grammy awarded English artist from London".split(" "))
|
|
|
|
| 92 |
pip install tner
|
| 93 |
```
|
| 94 |
and activate model as below.
|
| 95 |
+
```python
|
| 96 |
from tner import TransformersNER
|
| 97 |
model = TransformersNER("tner/roberta-large-conll2003")
|
| 98 |
model.predict("Jacob Collier is a Grammy awarded English artist from London".split(" "))
|