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)# pip install -U transformers accelerate # 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, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ language:
|
|
| 7 |
- pt
|
| 8 |
- de
|
| 9 |
---
|
| 10 |
-
# Model Card for
|
| 11 |
|
| 12 |
Referenceless Error Metric for Automatic Speech Recognition
|
| 13 |
via Contrastive Fine-Tuning of mMiniLMv2 without References
|
|
@@ -26,7 +26,7 @@ def preprocess(text: str):
|
|
| 26 |
text = re.sub(r'[^\w\s]', '', text)
|
| 27 |
return text
|
| 28 |
|
| 29 |
-
tokenizer = AutoTokenizer.from_pretrained("aixplain/
|
| 30 |
model = AutoModel.from_pretrained("aixplain/NoRef-ER", trust_remote_code=True)
|
| 31 |
|
| 32 |
# preprocess
|
|
|
|
| 7 |
- pt
|
| 8 |
- de
|
| 9 |
---
|
| 10 |
+
# Model Card for NoRefER
|
| 11 |
|
| 12 |
Referenceless Error Metric for Automatic Speech Recognition
|
| 13 |
via Contrastive Fine-Tuning of mMiniLMv2 without References
|
|
|
|
| 26 |
text = re.sub(r'[^\w\s]', '', text)
|
| 27 |
return text
|
| 28 |
|
| 29 |
+
tokenizer = AutoTokenizer.from_pretrained("aixplain/NoRefER")
|
| 30 |
model = AutoModel.from_pretrained("aixplain/NoRef-ER", trust_remote_code=True)
|
| 31 |
|
| 32 |
# preprocess
|