Text Classification
Safetensors
Transformers
English
LogClassifier
bert
log-classification
log feature
log-similarity
AIOps
Instructions to use SelectorAI/s2-log-classifier-BERT-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SelectorAI/s2-log-classifier-BERT-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SelectorAI/s2-log-classifier-BERT-v1")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SelectorAI/s2-log-classifier-BERT-v1") model = AutoModelForSequenceClassification.from_pretrained("SelectorAI/s2-log-classifier-BERT-v1") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,7 +20,7 @@ Developed by [Selector AI](https://www.selector.ai/)
|
|
| 20 |
from transformers import BertForSequenceClassification, BertTokenizer
|
| 21 |
|
| 22 |
# Step 1: Load the model and tokenizer from Hugging Face
|
| 23 |
-
model = BertForSequenceClassification.from_pretrained("
|
| 24 |
tokenizer = BertTokenizer.from_pretrained("SelectorAI/log-classifier-BERT-v1")
|
| 25 |
|
| 26 |
import torch
|
|
|
|
| 20 |
from transformers import BertForSequenceClassification, BertTokenizer
|
| 21 |
|
| 22 |
# Step 1: Load the model and tokenizer from Hugging Face
|
| 23 |
+
model = BertForSequenceClassification.from_pretrained("SelectorAI/log-classifier-BERT-v1")
|
| 24 |
tokenizer = BertTokenizer.from_pretrained("SelectorAI/log-classifier-BERT-v1")
|
| 25 |
|
| 26 |
import torch
|