Instructions to use MDDDDR/roberta_large_NER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MDDDDR/roberta_large_NER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="MDDDDR/roberta_large_NER")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("MDDDDR/roberta_large_NER") model = AutoModelForTokenClassification.from_pretrained("MDDDDR/roberta_large_NER") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -51,4 +51,11 @@ for txt, pred in zip(tokenizer.tokenize(text), pred):
|
|
| 51 |
print("{}\t{}".format(id2tag[pred], txt))
|
| 52 |
# B_MT ▁mental
|
| 53 |
# B_MT ▁disorder
|
| 54 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
print("{}\t{}".format(id2tag[pred], txt))
|
| 52 |
# B_MT ▁mental
|
| 53 |
# B_MT ▁disorder
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
## Framework versions
|
| 57 |
+
- transformers : 4.39.1
|
| 58 |
+
- torch : 2.1.0+cu121
|
| 59 |
+
- datasets : 2.18.0
|
| 60 |
+
- tokenizers : 0.15.2
|
| 61 |
+
- numpy : 1.20.0
|