Instructions to use ba-claim/electra with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ba-claim/electra with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ba-claim/electra")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ba-claim/electra") model = AutoModelForSequenceClassification.from_pretrained("ba-claim/electra", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
---
|
| 2 |
widget:
|
| 3 |
- text: "They're able to charge women more for the same exact procedure a man gets."
|
| 4 |
-
example_title: "
|
| 5 |
- text: "There's no way they would give it up."
|
| 6 |
-
example_title: "
|
| 7 |
---
|
| 8 |
|
| 9 |
****Examples****
|
|
|
|
| 1 |
---
|
| 2 |
widget:
|
| 3 |
- text: "They're able to charge women more for the same exact procedure a man gets."
|
| 4 |
+
example_title: "Example: Yes"
|
| 5 |
- text: "There's no way they would give it up."
|
| 6 |
+
example_title: "Example: No"
|
| 7 |
---
|
| 8 |
|
| 9 |
****Examples****
|