Instructions to use Rel8ed/cleantech-cls with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rel8ed/cleantech-cls with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Rel8ed/cleantech-cls")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Rel8ed/cleantech-cls") model = AutoModelForSequenceClassification.from_pretrained("Rel8ed/cleantech-cls") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -93,7 +93,7 @@ import re
|
|
| 93 |
|
| 94 |
model_name_or_path = "Rel8ed/cleantech-cls"
|
| 95 |
|
| 96 |
-
classifier = pipeline('text-classification', model=model_name_or_path)
|
| 97 |
|
| 98 |
def normalize(s, truncate=100):
|
| 99 |
s = s.replace("\n", " ")
|
|
|
|
| 93 |
|
| 94 |
model_name_or_path = "Rel8ed/cleantech-cls"
|
| 95 |
|
| 96 |
+
classifier = pipeline('text-classification', model=model_name_or_path, max_length=512)
|
| 97 |
|
| 98 |
def normalize(s, truncate=100):
|
| 99 |
s = s.replace("\n", " ")
|