Spaces:
Sleeping
Sleeping
Upload 10 files
Browse files- .gitattributes +1 -0
- app.py +85 -0
- email__classification.ipynb +0 -0
- email_classfication.pth +3 -0
- email_classification.csv +180 -0
- email_classification_documentation.docx +3 -0
- requirements.txt +7 -0
- tokenizer.pkl +3 -0
- tokenizer_vocab.joblib +3 -0
- vocab.json +1 -0
- vocab.pkl +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
email_classification_documentation.docx filter=lfs diff=lfs merge=lfs -text
|
app.py
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import torch
|
| 3 |
+
import re
|
| 4 |
+
import torch.nn as nn
|
| 5 |
+
import json
|
| 6 |
+
from tokenizers.models import WordLevel
|
| 7 |
+
from tokenizers.pre_tokenizers import Whitespace
|
| 8 |
+
from tokenizers import Tokenizer
|
| 9 |
+
import torch.nn.functional as F
|
| 10 |
+
|
| 11 |
+
st.title("Email Classification")
|
| 12 |
+
|
| 13 |
+
## mopdel
|
| 14 |
+
|
| 15 |
+
vocab_size = 473
|
| 16 |
+
embedding_dim = 25
|
| 17 |
+
hidden_units = 25
|
| 18 |
+
num_classes = 2
|
| 19 |
+
max_len = 20
|
| 20 |
+
|
| 21 |
+
class RNNModel(nn.Module):
|
| 22 |
+
def __init__(self, vocab_size, embedding_dim, hidden_units, num_classes):
|
| 23 |
+
super(RNNModel, self).__init__()
|
| 24 |
+
self.embedding = nn.Embedding(vocab_size, embedding_dim)
|
| 25 |
+
self.rnn = nn.RNN(embedding_dim, hidden_units, batch_first=True, dropout=0.2)
|
| 26 |
+
self.fc = nn.Linear(hidden_units, num_classes)
|
| 27 |
+
|
| 28 |
+
def forward(self, x):
|
| 29 |
+
x = self.embedding(x)
|
| 30 |
+
output, _ = self.rnn(x)
|
| 31 |
+
x = output[:, -1, :]
|
| 32 |
+
x = self.fc(x)
|
| 33 |
+
return F.softmax(x, dim=1)
|
| 34 |
+
|
| 35 |
+
model = RNNModel(vocab_size, embedding_dim, hidden_units, num_classes)
|
| 36 |
+
## load the weights
|
| 37 |
+
model.load_state_dict(torch.load( "email_classfication.pth", map_location=torch.device("cpu")))
|
| 38 |
+
model.eval()
|
| 39 |
+
|
| 40 |
+
with open("vocab.json", "r") as f:
|
| 41 |
+
vocab = json.load(f)
|
| 42 |
+
tokenizer = Tokenizer(WordLevel(vocab, unk_token="<unk>"))
|
| 43 |
+
tokenizer.pre_tokenizer = Whitespace()
|
| 44 |
+
# tokenizer=joblib.load("tokenizer.pkl")
|
| 45 |
+
|
| 46 |
+
def preprocess(words):
|
| 47 |
+
normalized = []
|
| 48 |
+
for i in words:
|
| 49 |
+
i = i.lower()
|
| 50 |
+
# get rid of urlss
|
| 51 |
+
i = re.sub('https?://\S+|www\.\S+', '', i)
|
| 52 |
+
# get rid of non words and extra spaces
|
| 53 |
+
i = re.sub('\\W', ' ', i)
|
| 54 |
+
i = re.sub('\n', '', i)
|
| 55 |
+
i = re.sub(' +', ' ', i)
|
| 56 |
+
i = re.sub('^ ', '', i)
|
| 57 |
+
i = re.sub(' $', '', i)
|
| 58 |
+
|
| 59 |
+
normalized.append(i)
|
| 60 |
+
text=[tokenizer.encode(text.lower()).ids for text in normalized]
|
| 61 |
+
max_length = 20
|
| 62 |
+
flattened_text = [token for sublist in text for token in sublist]
|
| 63 |
+
if len(flattened_text) > max_length:
|
| 64 |
+
flattened_text = flattened_text[:max_length]
|
| 65 |
+
else:
|
| 66 |
+
flattened_text += [0] * (max_length - len(flattened_text))
|
| 67 |
+
text_tensor = torch.tensor(flattened_text, dtype=torch.long)
|
| 68 |
+
text_tensor = text_tensor.unsqueeze(0)
|
| 69 |
+
return text_tensor
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
text=st.text_input("Enter the Email Text ",value="Happy holidays from our team! Wishing you joy and prosperity this season.")
|
| 75 |
+
|
| 76 |
+
if st.button("submit"):
|
| 77 |
+
words=text.split()
|
| 78 |
+
v=preprocess(words)
|
| 79 |
+
output=model(v)
|
| 80 |
+
if output.argmax()==1:
|
| 81 |
+
st.write("Its a Spam Mail")
|
| 82 |
+
else:
|
| 83 |
+
st.write("Its not a Spam Mail")
|
| 84 |
+
|
| 85 |
+
|
email__classification.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
email_classfication.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f159a7ca506ffd91a0fae857da743308581e4f7682df6d26f59f7444a81f40bc
|
| 3 |
+
size 55624
|
email_classification.csv
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
email,label
|
| 2 |
+
Upgrade to our premium plan for exclusive access to premium content and features.,ham
|
| 3 |
+
Happy holidays from our team! Wishing you joy and prosperity this season.,ham
|
| 4 |
+
We're hiring! Check out our career opportunities and join our dynamic team.,ham
|
| 5 |
+
Your Amazon account has been locked. Click here to verify your account information.,spam
|
| 6 |
+
Your opinion matters! Take our survey and help us enhance your experience.,ham
|
| 7 |
+
Your payment has been received. Thank you for your prompt transaction.,ham
|
| 8 |
+
Your email account storage is full. Click here to upgrade your account.,spam
|
| 9 |
+
"Dear [Name], thank you for subscribing to our newsletter. Here's your welcome gift!",ham
|
| 10 |
+
Your account has been credited with loyalty points. Redeem them for exciting rewards!,ham
|
| 11 |
+
You've been chosen for a free iPhone. Click here to claim your prize!,spam
|
| 12 |
+
Don't miss out on our special offer! Sign up now and get a discount on your first purchase.,ham
|
| 13 |
+
We're hiring interns for the summer. Apply now and gain valuable experience.,ham
|
| 14 |
+
You're pre-approved for a loan. Click here to apply now!,spam
|
| 15 |
+
We're thrilled to introduce our new collection. Shop now and enjoy exclusive discounts!,ham
|
| 16 |
+
We're excited to announce our upcoming webinar series. Register now to reserve your spot!,ham
|
| 17 |
+
We've added new features to our app based on your feedback. Update now!,ham
|
| 18 |
+
You're a winner! Click here to claim your exclusive prize.,spam
|
| 19 |
+
Your Facebook account has been hacked. Click here to secure your account.,spam
|
| 20 |
+
Congratulations on reaching a new milestone! Here's to many more achievements.,ham
|
| 21 |
+
Congratulations! You've been selected for a job interview. Click here to schedule your interview.,spam
|
| 22 |
+
Your account has been suspended due to suspicious activity. Click here to unlock your account.,spam
|
| 23 |
+
Get ready for our flash sale! Limited-time offers on your favorite products.,ham
|
| 24 |
+
Thank you for your feedback. We're always striving to improve our services.,ham
|
| 25 |
+
Your PayPal account has been suspended. Click here to restore your account access.,spam
|
| 26 |
+
You've won a luxury car! Click here to claim your prize.,spam
|
| 27 |
+
We've extended our sale for one more day! Don't miss your chance to save big.,ham
|
| 28 |
+
Your account has been flagged for suspicious activity. Click here to verify your identity.,spam
|
| 29 |
+
We're sorry for the inconvenience. Our website will be back online shortly.,ham
|
| 30 |
+
Thank you for your recent purchase. Here's a special offer for you.,ham
|
| 31 |
+
Get instant cash now! Click here to access our quick loan service.,spam
|
| 32 |
+
We're here to help you with any questions or concerns you may have.,ham
|
| 33 |
+
Your account has been banned. Click here to appeal the ban.,spam
|
| 34 |
+
Congratulations! You've won a free vacation to a tropical paradise! Claim now!,spam
|
| 35 |
+
Your account has been pre-approved for a credit card. Click here to apply now!,spam
|
| 36 |
+
We're sorry to see you go. Let us know if there's anything we can do to improve.,ham
|
| 37 |
+
You've been selected for a free trial of our premium membership. Click here to sign up!,spam
|
| 38 |
+
You've been selected for a free trial of our premium service. Click here to activate now!,spam
|
| 39 |
+
We're committed to sustainability. Learn more about our eco-friendly initiatives.,ham
|
| 40 |
+
We're hiring! Check out our careers page for current job openings.,ham
|
| 41 |
+
We're sorry for the inconvenience. Our website will be undergoing maintenance tonight.,ham
|
| 42 |
+
Your account has been credited with bonus points. Use them to unlock exclusive rewards!,ham
|
| 43 |
+
We appreciate your business. Here's a token of our appreciation.,ham
|
| 44 |
+
We value your feedback. Share your thoughts with us.,ham
|
| 45 |
+
Thank you for your loyalty. Here's a special discount code as a token of our appreciation.,ham
|
| 46 |
+
Thank you for your purchase. Your order will be delivered within the next few days.,ham
|
| 47 |
+
Your account has been hacked. Click here to reset your password.,spam
|
| 48 |
+
Get ready for our annual sale! Big savings await you.,ham
|
| 49 |
+
You've been selected for a free iPhone X. Click here to claim your prize!,spam
|
| 50 |
+
Congratulations! You've won a free trip to Europe. Click here to claim your prize!,spam
|
| 51 |
+
This is to inform you about the schedule change for tomorrow's meeting. Please take note.,ham
|
| 52 |
+
You've been selected for a special prize. Click here to claim your reward!,spam
|
| 53 |
+
You've been selected for a free trial of our premium service. Click here to activate now!,spam
|
| 54 |
+
You've been selected for a free trial of our premium service. Click here to activate now!,spam
|
| 55 |
+
Upgrade to our premium membership for exclusive benefits and personalized recommendations.,ham
|
| 56 |
+
You've won a luxury car! Click here to claim your prize.,spam
|
| 57 |
+
We've updated our app with new features. Update now for an enhanced user experience.,ham
|
| 58 |
+
Your opinion matters! Take our survey and get a chance to win exciting prizes.,ham
|
| 59 |
+
Get instant cash now! Click here to access our quick loan service.,spam
|
| 60 |
+
We're excited to announce our latest product release. Check it out!,ham
|
| 61 |
+
Your computer has been infected with a virus. Click here to download our antivirus software.,spam
|
| 62 |
+
Your account has been pre-approved for a credit card. Click here to apply now!,spam
|
| 63 |
+
Your subscription renewal is due. Don't forget to update your payment information.,ham
|
| 64 |
+
Get rich quick! Click here to join our exclusive investment program.,spam
|
| 65 |
+
Don't miss out on our limited-time offer. Shop now and save.,ham
|
| 66 |
+
We value your privacy. Review our updated privacy policy for more information.,ham
|
| 67 |
+
You've been selected for a free iPhone X. Click here to claim your prize!,spam
|
| 68 |
+
Your account has been compromised. Click here to secure your account.,spam
|
| 69 |
+
Congratulations! You're our lucky winner of the day. Click here to claim your prize!,spam
|
| 70 |
+
We're hosting a webinar next week. Register now to secure your spot!,ham
|
| 71 |
+
Your order has been successfully processed. It will be shipped out today.,ham
|
| 72 |
+
We're experiencing high call volumes. You can reach us faster by using our online chat.,ham
|
| 73 |
+
Your Netflix subscription has expired. Click here to renew now!,spam
|
| 74 |
+
Good morning! Attached is the report you requested. Have a great day!,ham
|
| 75 |
+
Thank you for attending our workshop. Here are the presentation slides for your reference.,ham
|
| 76 |
+
We're excited to share our latest product updates with you. Check them out now!,ham
|
| 77 |
+
Act fast! Limited-time offer on designer handbags. Click here to shop now!,spam
|
| 78 |
+
Claim your prize now! Click here to confirm your winnings.,spam
|
| 79 |
+
Just a friendly reminder to renew your subscription before it expires.,ham
|
| 80 |
+
Act now! Limited-time offer on luxury watches. Click here to buy now!,spam
|
| 81 |
+
Congratulations! You're the lucky winner of our holiday giveaway. Click here to claim your prize!,spam
|
| 82 |
+
Thank you for your inquiry. We appreciate your interest in our products.,ham
|
| 83 |
+
Get rich overnight! Click here to learn our secret money-making method.,spam
|
| 84 |
+
Your satisfaction is our priority. Let us know how we can serve you better.,ham
|
| 85 |
+
Thank you for your patience. Our technical team has resolved the issue. Happy browsing!,ham
|
| 86 |
+
"Dear [Name], your account subscription has expired. Renew now to continue enjoying our services.",ham
|
| 87 |
+
URGENT: Your account has been compromised. Click here to reset your password immediately.,spam
|
| 88 |
+
Your annual membership has been renewed. Enjoy another year of exclusive benefits.,ham
|
| 89 |
+
We're excited to share our latest blog post with you. Check it out for valuable insights.,ham
|
| 90 |
+
Your account has been banned. Click here to appeal the ban.,spam
|
| 91 |
+
You've won a luxury cruise! Click here to claim your tickets.,spam
|
| 92 |
+
We've detected unusual activity on your account. Secure it by changing your password.,ham
|
| 93 |
+
Your package is out for delivery. Track your shipment using the link provided.,ham
|
| 94 |
+
You've won a shopping spree! Click here to claim your voucher.,spam
|
| 95 |
+
Your account has been upgraded to VIP status. Enjoy enhanced benefits and privileges.,ham
|
| 96 |
+
Thank you for subscribing to our newsletter. Here's a special offer just for you!,ham
|
| 97 |
+
Our team is here to help you. Contact us anytime for assistance.,ham
|
| 98 |
+
Stay connected with us! Follow our social media channels for the latest updates.,ham
|
| 99 |
+
Your account has been hacked. Click here to reset your password.,spam
|
| 100 |
+
Stay informed with our latest blog posts. Subscribe to our newsletter today.,ham
|
| 101 |
+
Your account has been credited with bonus points. Click here to redeem your rewards.,spam
|
| 102 |
+
Congratulations! You're the winner of our daily giveaway. Click here to claim your reward!,spam
|
| 103 |
+
Your PayPal account has been locked. Click here to restore your account access.,spam
|
| 104 |
+
Your trial period has ended. Upgrade to a premium plan for unlimited access.,ham
|
| 105 |
+
Stay connected with our latest updates. Follow us on social media.,ham
|
| 106 |
+
Congratulations! You've been selected for a free trial of our premium software. Click here to download now!,spam
|
| 107 |
+
Congratulations! You've been selected for a free trial of our premium software. Click here to download now!,spam
|
| 108 |
+
Your order is confirmed. You'll receive a confirmation email shortly with the details.,ham
|
| 109 |
+
We're committed to providing excellent service. Your feedback helps us improve.,ham
|
| 110 |
+
"Dear [Name], your account has been upgraded to premium status. Enjoy the perks!",ham
|
| 111 |
+
Your feedback matters to us. Take our survey and help us serve you better.,ham
|
| 112 |
+
Congratulations! You're the winner of our daily giveaway. Click here to claim your reward!,spam
|
| 113 |
+
Claim your prize now! Click here to confirm your winnings.,spam
|
| 114 |
+
Stay in the loop with our newsletter. Subscribe now for the latest news and updates.,ham
|
| 115 |
+
You've been selected for a free trial of our premium service. Click here to activate now!,spam
|
| 116 |
+
Get exclusive access to our VIP club. Click here to join now!,spam
|
| 117 |
+
You're our lucky winner! Click here to claim your jackpot prize.,spam
|
| 118 |
+
Your bank account has been suspended. Click here to verify your account details.,spam
|
| 119 |
+
We're here to help! Contact our customer support team for assistance.,ham
|
| 120 |
+
We're excited to announce our new product launch. Check it out on our website!,ham
|
| 121 |
+
Unlock exclusive discounts! Click here to join our loyalty program.,spam
|
| 122 |
+
"Dear valued customer, here's a special discount code for your next purchase: XYZ123.",ham
|
| 123 |
+
Get rich overnight! Click here to learn our secret money-making method.,spam
|
| 124 |
+
We're excited to announce our partnership with [Company]. Stay tuned for exciting collaborations!,ham
|
| 125 |
+
We've reached a milestone! Thank you for being part of our journey.,ham
|
| 126 |
+
"We're pleased to announce our partnership with [Company]. Together, we'll achieve great things!",ham
|
| 127 |
+
We're hosting a giveaway on our social media channels. Follow us for a chance to win!,ham
|
| 128 |
+
We've launched a new feature based on user feedback. Try it out and let us know what you think!,ham
|
| 129 |
+
We've upgraded our servers for faster performance. Enjoy smoother browsing!,ham
|
| 130 |
+
Congratulations on your recent achievement! Keep up the great work!,ham
|
| 131 |
+
Claim your inheritance now! Click here to access your funds.,spam
|
| 132 |
+
We're committed to your satisfaction. Let us know how we can improve.,ham
|
| 133 |
+
We're excited to share our latest updates with you. Stay tuned for more news!,ham
|
| 134 |
+
Congratulations! You're the lucky winner of our holiday giveaway. Click here to claim your prize!,spam
|
| 135 |
+
You're invited to a special event. Click here to RSVP now!,spam
|
| 136 |
+
Thank you for your loyalty. Here's a special discount for being a valued customer.,ham
|
| 137 |
+
We hope you're enjoying your subscription. Let us know if you have any questions.,ham
|
| 138 |
+
"Dear [Name], your account balance is now updated. Please review the details.",ham
|
| 139 |
+
We're celebrating our anniversary! Join us for special offers and giveaways all week long.,ham
|
| 140 |
+
Your email account storage is full. Click here to upgrade your account.,spam
|
| 141 |
+
You're invited to a special event. Click here to RSVP now!,spam
|
| 142 |
+
We're here to assist you. Contact our support team if you need any help.,ham
|
| 143 |
+
Don't miss our end-of-season sale! Grab your favorite items at discounted prices.,ham
|
| 144 |
+
Your account has been credited with bonus points. Click here to redeem your rewards.,spam
|
| 145 |
+
Your Facebook account has been hacked. Click here to secure your account.,spam
|
| 146 |
+
Your account has been flagged for suspicious activity. Click here to verify your identity.,spam
|
| 147 |
+
You've won a shopping spree! Click here to claim your voucher.,spam
|
| 148 |
+
We're extending our sale for one more day due to popular demand. Don't miss out!,ham
|
| 149 |
+
We're hosting a live Q&A session tomorrow. Submit your questions in advance!,ham
|
| 150 |
+
You've won a lottery! Click here to claim your million-dollar prize!,spam
|
| 151 |
+
Congratulations on your recent purchase! Here's a voucher for your next order.,ham
|
| 152 |
+
Get rich quick! Click here to join our exclusive investment program.,spam
|
| 153 |
+
Your account has been credited with bonus points for your recent purchase. Enjoy!,ham
|
| 154 |
+
Get ready for our annual sale! Huge discounts on a wide range of products.,ham
|
| 155 |
+
We're sorry for the inconvenience. Our technical team is working on resolving the issue.,ham
|
| 156 |
+
"Your account login was successful. If this wasn't you, please contact us immediately.",ham
|
| 157 |
+
"We're thrilled to announce our partnership with [Organization]. Together, we'll make a difference!",ham
|
| 158 |
+
Your account has been suspended due to suspicious activity. Click here to unlock your account.,spam
|
| 159 |
+
Your Netflix subscription has expired. Click here to renew now!,spam
|
| 160 |
+
We're experiencing technical difficulties. Our team is working to resolve the issue ASAP.,ham
|
| 161 |
+
Act fast! Limited-time offer on designer handbags. Click here to shop now!,spam
|
| 162 |
+
You've won a luxury cruise! Click here to claim your tickets.,spam
|
| 163 |
+
Hello! Just wanted to remind you about our upcoming event. Don't miss it!,ham
|
| 164 |
+
Your account password has been reset successfully. Please login with the new password.,ham
|
| 165 |
+
You've won a shopping spree! Click here to claim your voucher.,spam
|
| 166 |
+
Unlock exclusive discounts! Click here to join our loyalty program.,spam
|
| 167 |
+
Act fast! Limited-time offer on luxury watches. Click here to buy now!,spam
|
| 168 |
+
Make money fast! Join our affiliate program and start earning cash today!,spam
|
| 169 |
+
Congratulations! You've been selected for a special offer. Enjoy!,ham
|
| 170 |
+
Your credit card has been charged for unauthorized purchases. Click here to dispute the charges.,spam
|
| 171 |
+
Congratulations on your recent purchase! Here's a special offer for your next order.,ham
|
| 172 |
+
Your account has been credited with bonus points for your continued support. Thank you!,ham
|
| 173 |
+
You've been chosen for a free iPhone. Click here to claim your prize!,spam
|
| 174 |
+
Congratulations! You've won a free trip to Europe. Click here to claim your prize!,spam
|
| 175 |
+
Introducing our loyalty program. Earn points with every purchase and redeem rewards!,ham
|
| 176 |
+
We're pleased to inform you that your refund has been processed successfully.,ham
|
| 177 |
+
Get rich quick! Invest in our revolutionary new scheme and retire early!,spam
|
| 178 |
+
Your free trial period is ending soon. Upgrade now to continue enjoying our services.,ham
|
| 179 |
+
Your order is on its way! Track your shipment for real-time updates.,ham
|
| 180 |
+
Limited-time offer! Get 50% off on all purchases today only. Don't miss out!,spam
|
email_classification_documentation.docx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f34b421b9cb240ed21a5224ed3b7e31182c46d36d73c442bc798152c4ce75b56
|
| 3 |
+
size 329174
|
requirements.txt
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
streamlit==1.30.0
|
| 2 |
+
pandas==2.1.4
|
| 3 |
+
torch==2.2.0
|
| 4 |
+
torchvision==0.17.0
|
| 5 |
+
numpy==1.26.3
|
| 6 |
+
scikit-learn==1.3.2
|
| 7 |
+
tokenizers==0.15.1
|
tokenizer.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be21ee10a77139f4bcc2ed007744da34078f29cb128bbe9391a2b61aa1b0944b
|
| 3 |
+
size 6603
|
tokenizer_vocab.joblib
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22b9e2ce79169a2af888166c2ea8318d7f1d03dde85db35fcc08d318b1e86f0c
|
| 3 |
+
size 6642
|
vocab.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"<pad>": 0, "<unk>": 1, "your": 2, "to": 3, "our": 4, "here": 5, "for": 6, "you": 7, "click": 8, "a": 9, "account": 10, "we": 11, "been": 12, "has": 13, "re": 14, "now": 15, "ve": 16, "the": 17, "and": 18, "with": 19, "on": 20, "claim": 21, "us": 22, "is": 23, "free": 24, "of": 25, "thank": 26, "premium": 27, "s": 28, "get": 29, "out": 30, "congratulations": 31, "special": 32, "won": 33, "selected": 34, "t": 35, "offer": 36, "trial": 37, "don": 38, "prize": 39, "purchase": 40, "exclusive": 41, "team": 42, "enjoy": 43, "miss": 44, "latest": 45, "it": 46, "join": 47, "updates": 48, "points": 49, "upgrade": 50, "time": 51, "access": 52, "subscription": 53, "service": 54, "password": 55, "check": 56, "activity": 57, "sale": 58, "more": 59, "new": 60, "credited": 61, "dear": 62, "limited": 63, "recent": 64, "order": 65, "rich": 66, "program": 67, "loyalty": 68, "excited": 69, "apply": 70, "take": 71, "suspicious": 72, "verify": 73, "in": 74, "due": 75, "if": 76, "please": 77, "stay": 78, "feedback": 79, "help": 80, "bonus": 81, "voucher": 82, "improve": 83, "name": 84, "sorry": 85, "shop": 86, "let": 87, "know": 88, "discount": 89, "next": 90, "unlock": 91, "rewards": 92, "suspended": 93, "renew": 94, "quick": 95, "technical": 96, "issue": 97, "pre": 98, "approved": 99, "activate": 100, "reset": 101, "upgraded": 102, "benefits": 103, "matters": 104, "survey": 105, "chance": 106, "hiring": 107, "secure": 108, "software": 109, "download": 110, "day": 111, "updated": 112, "experience": 113, "announce": 114, "great": 115, "this": 116, "contact": 117, "follow": 118, "social": 119, "media": 120, "support": 121, "shopping": 122, "spree": 123, "hacked": 124, "services": 125, "email": 126, "inconvenience": 127, "will": 128, "be": 129, "luxury": 130, "fast": 131, "up": 132, "newsletter": 133, "enjoying": 134, "can": 135, "information": 136, "them": 137, "learn": 138, "money": 139, "giveaway": 140, "expired": 141, "membership": 142, "just": 143, "details": 144, "customer": 145, "about": 146, "redeem": 147, "share": 148, "committed": 149, "experiencing": 150, "working": 151, "banned": 152, "appeal": 153, "ban": 154, "loan": 155, "appreciate": 156, "token": 157, "appreciation": 158, "immediately": 159, "status": 160, "enhanced": 161, "opinion": 162, "win": 163, "exciting": 164, "flagged": 165, "identity": 166, "by": 167, "season": 168, "favorite": 169, "hosting": 170, "tomorrow": 171, "questions": 172, "faster": 173, "browsing": 174, "one": 175, "features": 176, "update": 177, "user": 178, "pleased": 179, "ll": 180, "credit": 181, "card": 182, "login": 183, "connected": 184, "channels": 185, "trip": 186, "europe": 187, "valuable": 188, "storage": 189, "full": 190, "website": 191, "online": 192, "shortly": 193, "cruise": 194, "tickets": 195, "act": 196, "designer": 197, "handbags": 198, "iphone": 199, "sign": 200, "news": 201, "plan": 202, "have": 203, "any": 204, "using": 205, "privacy": 206, "review": 207, "paypal": 208, "locked": 209, "restore": 210, "offers": 211, "all": 212, "save": 213, "big": 214, "event": 215, "overnight": 216, "secret": 217, "making": 218, "method": 219, "winner": 220, "continue": 221, "annual": 222, "inform": 223, "successfully": 224, "investment": 225, "subscribing": 226, "payment": 227, "code": 228, "facebook": 229, "track": 230, "shipment": 231, "valued": 232, "upcoming": 233, "cash": 234, "today": 235, "products": 236, "friendly": 237, "ready": 238, "reward": 239, "happy": 240, "discounts": 241, "period": 242, "product": 243, "netflix": 244, "difficulties": 245, "resolve": 246, "asap": 247, "business": 248, "urgent": 249, "compromised": 250, "vip": 251, "privileges": 252, "prizes": 253, "careers": 254, "page": 255, "current": 256, "job": 257, "openings": 258, "detected": 259, "unusual": 260, "changing": 261, "end": 262, "grab": 263, "items": 264, "at": 265, "discounted": 266, "prices": 267, "live": 268, "q": 269, "session": 270, "submit": 271, "advance": 272, "career": 273, "opportunities": 274, "dynamic": 275, "servers": 276, "performance": 277, "smoother": 278, "extending": 279, "popular": 280, "demand": 281, "app": 282, "an": 283, "partnership": 284, "company": 285, "together": 286, "achieve": 287, "things": 288, "was": 289, "successful": 290, "wasn": 291, "serve": 292, "better": 293, "continued": 294, "always": 295, "striving": 296, "lottery": 297, "million": 298, "dollar": 299, "perks": 300, "interns": 301, "summer": 302, "gain": 303, "back": 304, "enhance": 305, "vacation": 306, "tropical": 307, "paradise": 308, "launched": 309, "feature": 310, "based": 311, "try": 312, "what": 313, "think": 314, "chosen": 315, "first": 316, "loop": 317, "subscribe": 318, "achievement": 319, "keep": 320, "work": 321, "content": 322, "hope": 323, "high": 324, "call": 325, "volumes": 326, "reach": 327, "chat": 328, "value": 329, "policy": 330, "delivered": 331, "within": 332, "few": 333, "days": 334, "use": 335, "celebrating": 336, "anniversary": 337, "giveaways": 338, "week": 339, "long": 340, "extended": 341, "invited": 342, "rsvp": 343, "lucky": 344, "holiday": 345, "undergoing": 346, "maintenance": 347, "tonight": 348, "invest": 349, "revolutionary": 350, "scheme": 351, "retire": 352, "early": 353, "renewed": 354, "another": 355, "year": 356, "that": 357, "refund": 358, "processed": 359, "x": 360, "balance": 361, "renewal": 362, "forget": 363, "attending": 364, "workshop": 365, "are": 366, "presentation": 367, "slides": 368, "reference": 369, "as": 370, "assist": 371, "need": 372, "its": 373, "way": 374, "real": 375, "assistance": 376, "xyz123": 377, "personalized": 378, "recommendations": 379, "received": 380, "prompt": 381, "transaction": 382, "hello": 383, "wanted": 384, "remind": 385, "amazon": 386, "make": 387, "affiliate": 388, "start": 389, "earning": 390, "schedule": 391, "change": 392, "meeting": 393, "note": 394, "inquiry": 395, "interest": 396, "reminder": 397, "before": 398, "expires": 399, "see": 400, "go": 401, "there": 402, "anything": 403, "do": 404, "savings": 405, "await": 406, "welcome": 407, "gift": 408, "daily": 409, "package": 410, "delivery": 411, "link": 412, "provided": 413, "patience": 414, "resolved": 415, "thrilled": 416, "introduce": 417, "collection": 418, "computer": 419, "infected": 420, "virus": 421, "antivirus": 422, "resolving": 423, "tuned": 424, "good": 425, "morning": 426, "attached": 427, "report": 428, "requested": 429, "being": 430, "car": 431, "providing": 432, "excellent": 433, "helps": 434, "ending": 435, "soon": 436, "release": 437, "flash": 438, "instant": 439, "introducing": 440, "earn": 441, "every": 442, "inheritance": 443, "funds": 444, "sustainability": 445, "eco": 446, "initiatives": 447, "holidays": 448, "from": 449, "wishing": 450, "joy": 451, "prosperity": 452, "satisfaction": 453, "how": 454, "bank": 455, "blog": 456, "post": 457, "insights": 458, "50": 459, "off": 460, "purchases": 461, "only": 462, "confirmed": 463, "receive": 464, "confirmation": 465, "webinar": 466, "series": 467, "register": 468, "reserve": 469, "spot": 470, "ended": 471, "unlimited": 472}
|
vocab.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53a9a83532991f38257c45f76eea074057f0461146f791ea34e2ff5ceeb17707
|
| 3 |
+
size 5504
|