Instructions to use aixplain/NoRefER with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aixplain/NoRefER with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="aixplain/NoRefER", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("aixplain/NoRefER", trust_remote_code=True) model = AutoModel.from_pretrained("aixplain/NoRefER", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Commit ·
4c939c0
1
Parent(s): 0c22a8e
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,7 +26,7 @@ tokens = tokenizer([
|
|
| 26 |
"In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced.",
|
| 27 |
"In Italy, pizzas serves in formal settings, such as at an restaurant, is presented unslicing."
|
| 28 |
], padding=True, return_tensors="pt")
|
| 29 |
-
scores = model.
|
| 30 |
```
|
| 31 |
|
| 32 |
## Model Description
|
|
|
|
| 26 |
"In Italy, pizza served in formal settings, such as at a restaurant, is presented unsliced.",
|
| 27 |
"In Italy, pizzas serves in formal settings, such as at an restaurant, is presented unslicing."
|
| 28 |
], padding=True, return_tensors="pt")
|
| 29 |
+
scores = model.score(**tokens)
|
| 30 |
```
|
| 31 |
|
| 32 |
## Model Description
|