Update README.md
Browse files
README.md
CHANGED
|
@@ -8,6 +8,7 @@ tags:
|
|
| 8 |
license: apache-2.0
|
| 9 |
datasets:
|
| 10 |
- bvk/SMS-spam
|
|
|
|
| 11 |
language:
|
| 12 |
- en
|
| 13 |
metrics:
|
|
@@ -66,7 +67,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipe
|
|
| 66 |
|
| 67 |
# Load the model and tokenizer
|
| 68 |
model_name = "kenbaker-gif/Email-Spam-Classifier"
|
| 69 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
| 70 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 71 |
|
| 72 |
# Create a text-classification pipeline
|
|
@@ -159,7 +160,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification, pipe
|
|
| 159 |
# Load model and tokenizer
|
| 160 |
model_name = "kenbaker-gif/Email-Spam-Classifier"
|
| 161 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 162 |
-
model = AutoModelForSequenceClassification.from_pretrained(
|
| 163 |
|
| 164 |
# Create pipeline
|
| 165 |
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
|
@@ -233,4 +234,4 @@ Ainebyona Abuabker
|
|
| 233 |
## Model Card Contact
|
| 234 |
- Name: Ainebyona Abubaker
|
| 235 |
- Email: ainebyonabubaker@proton.me
|
| 236 |
-
- GitHub: https://github.com/kenbaker-gif
|
|
|
|
| 8 |
license: apache-2.0
|
| 9 |
datasets:
|
| 10 |
- bvk/SMS-spam
|
| 11 |
+
- corbt/enron-emails
|
| 12 |
language:
|
| 13 |
- en
|
| 14 |
metrics:
|
|
|
|
| 67 |
|
| 68 |
# Load the model and tokenizer
|
| 69 |
model_name = "kenbaker-gif/Email-Spam-Classifier"
|
| 70 |
+
tokenizer = AutoTokenizer.from_pretrained(Email_Spam_Classifier)
|
| 71 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
| 72 |
|
| 73 |
# Create a text-classification pipeline
|
|
|
|
| 160 |
# Load model and tokenizer
|
| 161 |
model_name = "kenbaker-gif/Email-Spam-Classifier"
|
| 162 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 163 |
+
model = AutoModelForSequenceClassification.from_pretrained(Email_Spam_Classifier)
|
| 164 |
|
| 165 |
# Create pipeline
|
| 166 |
classifier = pipeline("text-classification", model=model, tokenizer=tokenizer)
|
|
|
|
| 234 |
## Model Card Contact
|
| 235 |
- Name: Ainebyona Abubaker
|
| 236 |
- Email: ainebyonabubaker@proton.me
|
| 237 |
+
- GitHub: https://github.com/kenbaker-gif
|