mohamednihal commited on
Commit
2378f10
1 Parent(s): ec463d1

Add SetFit model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,396 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: setfit
3
+ tags:
4
+ - setfit
5
+ - sentence-transformers
6
+ - text-classification
7
+ - generated_from_setfit_trainer
8
+ metrics:
9
+ - accuracy
10
+ widget:
11
+ - text: 'Dear [Recipient],
12
+
13
+
14
+ We wanted to inform you about an update regarding [briefly describe the topic
15
+ or subject].
16
+
17
+
18
+ Please note that this email is sent from a do-not-reply address, and no response
19
+ is required. Should you have any questions or require further assistance, please
20
+ feel free to contact our support team at [support email/phone number].
21
+
22
+
23
+ Thank you for your attention to this matter.
24
+
25
+
26
+ Best regards,
27
+
28
+ [Your Name]
29
+
30
+ [Your Position/Department (if applicable)]
31
+
32
+ [Your Company/Organization Name]
33
+
34
+
35
+
36
+
37
+
38
+
39
+ '
40
+ - text: 'Dear [Recipient],
41
+
42
+
43
+ We regret to inform you that the email with the subject "[Subject]" sent on [Date/Time]
44
+ was not successfully delivered due to network issues.
45
+
46
+
47
+ To ensure successful delivery of future communications, we recommend checking
48
+ your internet connection and trying to resend the email. If the issue persists,
49
+ please contact your network administrator or Internet Service Provider (ISP) for
50
+ further assistance.
51
+
52
+
53
+ If you require any assistance or have any questions, please don''t hesitate to
54
+ contact our support team at [Support Contact Information].
55
+
56
+
57
+ Thank you for your attention to this matter.
58
+
59
+
60
+ Best regards,
61
+
62
+
63
+ [Your Name]
64
+
65
+ [Your Position/Department (if applicable)]
66
+
67
+ [Your Company Name]
68
+
69
+ [Your Contact Information]'
70
+ - text: 'Dear [Recipient],
71
+
72
+
73
+ I hope this email finds you well. I wanted to remind you that the deadline for
74
+ [Task/Project] is approaching on [Deadline Date].
75
+
76
+
77
+ [Include any relevant details about the task or project, such as specific requirements
78
+ or milestones.]
79
+
80
+
81
+ Please prioritize completing this task within the given timeline to ensure timely
82
+ delivery and project success. If you encounter any challenges or require assistance,
83
+ feel free to reach out to your team members or supervisor for support.
84
+
85
+
86
+ Thank you for your attention to this matter. Let''s work together to meet our
87
+ project goals.
88
+
89
+
90
+ Best regards,
91
+
92
+ [Your Name]
93
+
94
+ [Your Position/Department]
95
+
96
+ [Your Company Name]
97
+
98
+ [Your Contact Information]'
99
+ - text: 'Hello,
100
+
101
+
102
+ Thank you for your email. I am currently attending a conference and may have limited
103
+ access to email until [Date of Return]. I will respond to your message as soon
104
+ as possible upon my return. For urgent matters, please contact [Alternative Contact
105
+ Information].
106
+
107
+
108
+ Best regards,
109
+
110
+ [Your Name]'
111
+ - text: 'Hello [Recipient''s Name],
112
+
113
+
114
+ As a valued member of our community, we''re delighted to offer you an exclusive
115
+ discount! Enjoy [Discount percentage]% off your next purchase when you use code
116
+ [Promo code] at checkout.
117
+
118
+
119
+ Explore our latest arrivals and treat yourself to something special. But hurry
120
+ - this offer expires soon!
121
+
122
+
123
+ Shop now at [Link to Website] and enjoy savings on us.
124
+
125
+
126
+ Best regards,
127
+
128
+ [Your Name]
129
+
130
+ [Your Position/Department]
131
+
132
+ [Your Contact Information]'
133
+ pipeline_tag: text-classification
134
+ inference: true
135
+ base_model: sentence-transformers/paraphrase-mpnet-base-v2
136
+ ---
137
+
138
+ # SetFit with sentence-transformers/paraphrase-mpnet-base-v2
139
+
140
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
141
+
142
+ The model has been trained using an efficient few-shot learning technique that involves:
143
+
144
+ 1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
145
+ 2. Training a classification head with features from the fine-tuned Sentence Transformer.
146
+
147
+ ## Model Details
148
+
149
+ ### Model Description
150
+ - **Model Type:** SetFit
151
+ - **Sentence Transformer body:** [sentence-transformers/paraphrase-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-mpnet-base-v2)
152
+ - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
153
+ - **Maximum Sequence Length:** 512 tokens
154
+ - **Number of Classes:** 10 classes
155
+ <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
156
+ <!-- - **Language:** Unknown -->
157
+ <!-- - **License:** Unknown -->
158
+
159
+ ### Model Sources
160
+
161
+ - **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
162
+ - **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
163
+ - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
164
+
165
+ ### Model Labels
166
+ | Label | Examples |
167
+ |:----------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
168
+ | Password reset emails | <ul><li>'Dear [Recipient],\n\nAs part of our ongoing efforts to enhance security measures, we require you to reset your password for your account at [Your Company/Organization Name].\n\nTo initiate the password reset process, please follow the instructions below:\n\nVisit the password reset page by clicking on the link below:\n[Password Reset Link]\n\nEnter your username/email associated with your account.\n\nFollow the on-screen prompts to create a new password.\n\nPlease note that for security reasons, this link will expire within [X] hours. If you did not request this password reset or suspect any unauthorized activity on your account, please contact our support team immediately at [Support Contact Information].\n\nThank you for your cooperation in maintaining the security of your account.\n\nBest regards,\n\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]\n[Your Contact Information]\n\n\n\n\n\n'</li><li>'Dear [Recipient],\n\nWe have received a request to reset the password for your account associated with [Your Company/Organization Name]. If you initiated this request, please follow the instructions below to reset your password:\n\nClick on the following link to reset your password: [Password Reset Link]\nFollow the on-screen prompts to create a new password.\nOnce completed, you can log in to your account using your new password.\nIf you did not request this password reset or believe this email was sent in error, please ignore this message. Your current password will remain unchanged.\n\nIf you have any questions or concerns, please contact our support team at [Support Contact Information].\n\nBest regards,\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]'</li><li>'Dear [Recipient],\n\nYou have requested to reset the password for your account at [Your Company/Organization Name]. Follow the instructions below to reset your password:\n\nVisit the password reset page by clicking on the following link: [Password Reset Link]\nEnter your username/email associated with your account.\nFollow the on-screen instructions to create a new password.\nOnce completed, your password will be successfully reset.\nIf you did not initiate this password reset request, please disregard this email. Your account remains secure, and no changes have been made.\n\nIf you have any questions or need further assistance, please contact our support team at [Support Contact Information].\n\nBest regards,\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]'</li></ul> |
169
+ | System Alerts | <ul><li>'Dear [Customer/User],\n\nWe hope this email finds you well. We wanted to inform you about an upcoming system maintenance activity scheduled for [Date/Time].\n\nDuring this maintenance window, there might be temporary disruptions to our services. We apologize for any inconvenience this may cause and assure you that our team will work diligently to minimize the impact and restore full functionality as quickly as possible.\n\nThank you for your understanding and cooperation.\n\nBest regards,\n[Your Company Name]'</li><li>'Dear [Recipient],\n\nWe regret to inform you that our servers are currently experiencing downtime due to unexpected technical issues. Our technical team is actively working to resolve the issue and restore services as soon as possible.\n\nDuring this time, you may experience interruptions in accessing our systems and services. We apologize for any inconvenience this may cause and appreciate your patience and understanding.\n\nWe will provide regular updates on the situation as it progresses. If you have any urgent concerns or require immediate assistance, please contact our support team at [Support Contact Information].\n\nThank you for your cooperation.\n\nBest regards,\n[Your Name]\n[Your Position/Department]\n[Your Company Name]'</li><li>'Dear [Recipient],\n\nWe regret to inform you that our security systems have detected unauthorized access to our network. As a precautionary measure, we have initiated a comprehensive investigation to determine the extent of the breach and mitigate any potential risks.\n\nDuring this time, we advise all users to exercise caution and remain vigilant for any suspicious activity. If you notice any unusual behavior or unauthorized access to your account, please report it immediately to our security team at [Security Contact Information].\n\nWe apologize for any inconvenience this may cause and assure you that we are taking all necessary steps to address the situation and safeguard our systems and data.\n\nThank you for your cooperation.\n\nBest regards,\n[Your Name]\n[Your Position/Department]\n[Your Company Name]'</li></ul> |
170
+ | Promotional emails | <ul><li>"Dear [Customer],\n\nWe are excited to announce a special promotion exclusively for our valued customers like you! For a limited time only, we are offering a [X]% discount on our latest range of products.\n\nWhether you're looking for [mention specific products/categories], now is the perfect opportunity to upgrade and enjoy incredible savings.\n\nHurry, this offer won't last long! Visit our website [insert website link] or visit our nearest store to explore our collection and take advantage of this fantastic deal.\n\nThank you for choosing [Your Company Name]. We appreciate your continued support.\n\nBest regards,\n[Your Company Name]\n\n\n\n\n"</li><li>"Dear [Recipient's Name],\n\nWe are excited to introduce our latest collection, featuring [highlighted product features]. From stylish apparel to must-have accessories, we have something for everyone.\n\nTake advantage of our special launch offer: [Promotional offer details]. Don't miss out - shop now and elevate your wardrobe!\n\nVisit our website [Link to Website] to explore the full collection.\n\nHappy shopping!\n\nBest regards,\n[Your Name]\n[Your Position/Department]\n[Your Contact Information]"</li><li>"Dear [Recipient's Name],\n\nSpring into savings with our exciting sale event! Enjoy [Discount percentage]% off sitewide on all your favorite products.\n\nFrom spring essentials to trend-setting fashion, we have everything you need to refresh your wardrobe this season.\n\nShop now and make the most of this limited-time offer!\n\nWarm regards,\n[Your Name]\n[Your Position/Department]\n[Your Contact Information]"</li></ul> |
171
+ | Automatic subscription confirmation emails | <ul><li>"Dear [Recipient],\n\nThank you for subscribing to [Product/Service Name]! We're thrilled to have you on board.\n\nTo complete the subscription process and start receiving updates, newsletters, and exclusive offers, please confirm your subscription by clicking on the link below:\n\n[Subscription Confirmation Link]\n\nBy confirming your subscription, you'll stay up-to-date with the latest news, product launches, and special promotions tailored just for you.\n\nIf you did not initiate this subscription or believe this email was sent in error, please disregard it.\n\nThank you for choosing [Your Company/Organization Name]. We look forward to serving you!\n\nBest regards,\n\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]\n[Your Contact Information]"</li><li>"Dear [Recipient's Name],\n\nThank you for subscribing to our newsletter. You're now part of our community! We're excited to share the latest updates, promotions, and exclusive offers with you.\n\nYou will start receiving our newsletter shortly. If you have any questions or feedback, feel free to reply to this email.\n\nBest regards,\n[Your Name]\n[Your Position/Department]\n[Your Contact Information]"</li><li>"Hello [Recipient's Name],\n\nCongratulations! Your account registration is complete. You are now a member of our platform.\n\nWith your account, you can access exclusive content, manage your preferences, and much more.\n\nIf you have any questions or need assistance, please don't hesitate to reach out.\n\nBest regards,\n[Your Name]\n[Your Position/Department]\n[Your Contact Information]"</li></ul> |
172
+ | Email Delivery failure notifications | <ul><li>'Dear [Recipient],\n\nWe regret to inform you that your recent email delivery encountered an issue and was not successfully delivered to the intended recipient.\n\nThe email with the subject "[Subject of the Email]" sent on [Date/Time] was returned due to the following reason: [Brief description of the delivery failure reason, such as invalid recipient address, mailbox full, or network issues].\n\nTo ensure that your message reaches its destination, we recommend reviewing and correcting any errors in the recipient\'s email address or content of the email. Once done, you may resend the email.\n\nIf you believe this notification is received in error or require further assistance, please don\'t hesitate to contact our support team at [Support Contact Information].\n\nWe apologize for any inconvenience this may have caused and appreciate your understanding.\n\nBest regards,\n\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]\n[Your Contact Information]'</li><li>'Dear [Recipient],\n\nWe regret to inform you that the email with the subject "[Subject]" sent on [Date/Time] was not successfully delivered due to an invalid recipient address.\n\nTo ensure successful delivery of future communications, please review and verify the recipient\'s email address for accuracy. Once corrected, you may resend the email.\n\nIf you require any assistance or have any questions, please don\'t hesitate to contact our support team at [Support Contact Information].\n\nThank you for your attention to this matter.\n\nBest regards,\n\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]\n[Your Contact Information]'</li><li>'Dear [Recipient],\n\nWe regret to inform you that the email with the subject "[Subject]" sent on [Date/Time] was not successfully delivered due to your mailbox being full.\n\nTo ensure successful delivery of future emails, we recommend clearing out unnecessary emails or upgrading your mailbox storage capacity. Once completed, please let us know, and we will be happy to resend the email.\n\nIf you require any assistance or have any questions, please don\'t hesitate to contact our support team at [Support Contact Information].\n\nThank you for your attention to this matter.\n\nBest regards,\n\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]\n[Your Contact Information]'</li></ul> |
173
+ | Out-of- office replies | <ul><li>'Dear [Recipient],\n\nThank you for your email. I am currently out of the office and will not be able to respond to emails until [Date of Return].\n\nDuring this time, I will have limited access to my email and may not be able to reply promptly. Rest assured, I will attend to your email as soon as possible upon my return.\n\nIf your matter is urgent and requires immediate assistance, please contact [Alternative Contact Person/Department] at [Alternative Contact Email/Phone Number].\n\nFor all other inquiries, I kindly ask for your patience and understanding. I will do my best to respond to your email as soon as I am back in the office.\n\nThank you for your understanding.'</li><li>'Dear Sender,\n\nThank you for your email. I am currently out of the office and will not be able to respond until [Date of Return]. For urgent matters, please contact [Alternative Contact Information]. Otherwise, I will respond to your email upon my return.\n\nBest regards,\n[Your Name]'</li><li>'Hello,\n\nI am currently on a business trip and will have limited access to email until [Date of Return]. I will do my best to respond to your message as soon as possible upon my return. For urgent matters, please contact [Alternative Contact Information].\n\nThank you for your understanding.\n\nKind regards,\n[Your Name]'</li></ul> |
174
+ | Read receipts or delivery confirmation | <ul><li>'Dear [Recipient],\n\nI hope this email finds you well. I am writing to confirm the receipt of the email I sent to you earlier today with the subject "[Your Subject]".\n\nIn order to ensure that the message has been successfully received and reviewed on your end, I kindly request that you provide a read receipt or confirm the delivery status of the email at your earliest convenience.\n\nYour confirmation would greatly assist me in ensuring that the necessary information has been communicated effectively.\n\nThank you for your attention to this matter. Please don\'t hesitate to reach out if you require any further clarification or assistance.\n\nBest regards,\n\n[Your Name]\n[Your Position/Title]\n[Your Contact Information]'</li><li>'Dear [Recipient\'s Name],\n\nThis is to inform you that your email with the subject "Important Update" sent on [Date and Time] has been successfully read by the recipient. You can now be assured that your message has been received and acknowledged.\n\nIf you have any further questions or require additional assistance, please feel free to reach out.\n\nThank you for choosing Gmail.\n\nSincerely,\nThe Gmail Team'</li><li>'Dear [Sender\'s Name],\n\nWe are pleased to inform you that your email with the subject "[Email Subject]" sent on [Date and Time] has been successfully read by the recipient. Your message has been acknowledged and received.\n\nShould you have any further questions or concerns, please feel free to reach out to us.\n\nThank you for choosing our services.\n\nBest regards,\n[Your Name]'</li></ul> |
175
+ | Do-not-reply or no-reply emails (explicitly mentioned in email) | <ul><li>'Dear [Recipient],\n\nPlease be advised that this email is for informational purposes only. No reply is required or monitored.\n\nWe are reaching out to provide you with [specific information, update, or notification] regarding [briefly mention the subject matter].\n\nIf you have any questions or require further assistance regarding the content of this email, please contact our support team at [support email or phone number].\n\nThank you for your attention to this matter.\n\nBest regards,\n\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]\n[Your Contact Information]'</li><li>'Dear [Recipient],\n\nWe are writing to inform you about a recent update related to [briefly describe the topic or subject].\n\nPlease be aware that this email is sent from a do-not-reply address, and responses to this email will not be monitored. If you have any questions or need further clarification regarding the update, please reach out to our support team at [support email/phone number].\n\nThank you for your attention to this notification.\n\nBest regards,\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company/Organization Name]\n\n'</li><li>"Dear [Recipient],\n\nWe hope this message finds you well. We're reaching out to inform you about an important update regarding [briefly mention the subject matter].\n\nPlease note that this email is for informational purposes only, and no response is necessary. Should you have any questions or concerns regarding the update, please don't hesitate to reach out to us at [contact email/phone].\n\nThank you for your attention to this matter.\n\nBest regards,\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company/Organization Name]\n\n\n\n\n"</li></ul> |
176
+ | Reminders | <ul><li>"Dear [Recipient],\n\nI hope this email finds you well. Just a friendly reminder about [brief description of the reminder topic].\n\n[Add any relevant details or instructions related to the reminder.]\n\nThank you for your attention to this matter. If you have any questions or need further assistance, please don't hesitate to contact me.\n\nBest regards,\n\n[Your Name]\n[Your Position/Title]\n[Your Contact Information]\n\n\n\n\n\n"</li><li>"Dear [Recipient],\n\nI hope this email finds you well. This is just a friendly reminder that payment for [Invoice/Service/Product] is due on [Due Date].\n\n[Include any relevant details about the payment, such as amount, invoice number, and payment methods.]\n\nPlease ensure to process the payment by the due date to avoid any late fees or disruptions to your service.\n\nIf you have any questions or need assistance with the payment process, please don't hesitate to contact our billing department at [Billing Contact Information].\n\nThank you for your prompt attention to this matter.\n\nBest regards,\n[Your Name]\n[Your Position/Department]\n[Your Company Name]\n[Your Contact Information]"</li><li>'Dear [Recipient],\n\nI hope this email finds you well. Just a quick reminder that we have a scheduled meeting on [Date] at [Time].\n\n[Include any relevant details about the meeting, such as agenda items, location, or virtual meeting link.]\n\nPlease ensure to mark your calendar and make necessary preparations for the meeting. Your participation and input are valuable to the success of our discussion.\n\nIf you have any scheduling conflicts or need to propose agenda topics, please let us know as soon as possible.\n\nLooking forward to our productive meeting.\n\nBest regards,\n[Your Name]\n[Your Position/Department]\n[Your Company Name]\n[Your Contact Information]'</li></ul> |
177
+ | Security Alerts | <ul><li>"Dear [Recipient],\n\nWe are writing to inform you about an urgent security alert that requires your immediate attention.\n\n[Describe the security issue or threat briefly and clearly.]\n\nTo ensure the safety and integrity of your account/data, we highly recommend taking the following actions immediately:\n\nChange your password: Please reset your password using a strong and unique combination of characters.\nEnable two-factor authentication (2FA): Add an extra layer of security to your account by enabling 2FA if you haven't already done so.\nReview recent account activity: Check for any suspicious or unauthorized activities and report them to our support team immediately.\nIf you have any concerns or require assistance with securing your account, please contact our security team at [security email or phone number].\n\nYour prompt attention to this matter is crucial in safeguarding your information and preventing potential security breaches.\n\nThank you for your cooperation and understanding.\n\nBest regards,\n\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]\n[Your Contact Information]"</li><li>"Dear [Recipient],\n\nWe are writing to inform you about a potential phishing attempt that has been detected targeting users of our platform.\n\n[Describe the phishing attempt briefly, including any relevant details or indicators of the phishing email.]\n\nTo safeguard your account and personal information, please remember the following precautions:\n\nDo not click on any links or download attachments from suspicious emails.\nVerify the sender's email address and look for any signs of spoofing or impersonation.\nReport any suspicious emails to our security team immediately for further investigation.\nIf you have inadvertently clicked on any links or provided any sensitive information, please change your account password immediately and notify our support team for assistance.\n\nThank you for your attention to this matter and for helping us maintain a secure environment for all our users.\n\nBest regards,\n\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]\n[Your Contact Information]"</li><li>'Dear [Recipient],\n\nWe regret to inform you that your account has been temporarily locked due to multiple failed login attempts.\n\n[Explain the reason for the account lockout, such as exceeding the maximum allowed login attempts or suspicious login activity.]\n\nTo regain access to your account, please follow these steps:\n\nVisit our login page and click on the "Forgot Password" link.\nFollow the instructions to reset your password securely.\nAfter resetting your password, you will be able to log in to your account as usual.\nIf you believe this lockout was initiated in error or have any concerns about the security of your account, please contact our support team immediately for assistance.\n\nThank you for your cooperation and understanding.\n\nBest regards,\n\n[Your Name]\n[Your Position/Department (if applicable)]\n[Your Company Name]\n[Your Contact Information]'</li></ul> |
178
+
179
+ ## Uses
180
+
181
+ ### Direct Use for Inference
182
+
183
+ First install the SetFit library:
184
+
185
+ ```bash
186
+ pip install setfit
187
+ ```
188
+
189
+ Then you can load this model and run inference.
190
+
191
+ ```python
192
+ from setfit import SetFitModel
193
+
194
+ # Download from the 🤗 Hub
195
+ model = SetFitModel.from_pretrained("mohamednihal/no_reply")
196
+ # Run inference
197
+ preds = model("Hello,
198
+
199
+ Thank you for your email. I am currently attending a conference and may have limited access to email until [Date of Return]. I will respond to your message as soon as possible upon my return. For urgent matters, please contact [Alternative Contact Information].
200
+
201
+ Best regards,
202
+ [Your Name]")
203
+ ```
204
+
205
+ <!--
206
+ ### Downstream Use
207
+
208
+ *List how someone could finetune this model on their own dataset.*
209
+ -->
210
+
211
+ <!--
212
+ ### Out-of-Scope Use
213
+
214
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
215
+ -->
216
+
217
+ <!--
218
+ ## Bias, Risks and Limitations
219
+
220
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
221
+ -->
222
+
223
+ <!--
224
+ ### Recommendations
225
+
226
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
227
+ -->
228
+
229
+ ## Training Details
230
+
231
+ ### Training Set Metrics
232
+ | Training set | Min | Median | Max |
233
+ |:-------------|:----|:-------|:----|
234
+ | Word count | 44 | 85.24 | 170 |
235
+
236
+ | Label | Training Sample Count |
237
+ |:----------------------------------------------------------------|:----------------------|
238
+ | Automatic subscription confirmation emails | 5 |
239
+ | Do-not-reply or no-reply emails (explicitly mentioned in email) | 5 |
240
+ | Email Delivery failure notifications | 5 |
241
+ | Out-of- office replies | 5 |
242
+ | Password reset emails | 5 |
243
+ | Promotional emails | 5 |
244
+ | Read receipts or delivery confirmation | 5 |
245
+ | Reminders | 5 |
246
+ | Security Alerts | 5 |
247
+ | System Alerts | 5 |
248
+
249
+ ### Training Hyperparameters
250
+ - batch_size: (2, 2)
251
+ - num_epochs: (1, 1)
252
+ - max_steps: -1
253
+ - sampling_strategy: oversampling
254
+ - num_iterations: 20
255
+ - body_learning_rate: (2.887681170264626e-05, 2.887681170264626e-05)
256
+ - head_learning_rate: 2.887681170264626e-05
257
+ - loss: CosineSimilarityLoss
258
+ - distance_metric: cosine_distance
259
+ - margin: 0.25
260
+ - end_to_end: False
261
+ - use_amp: False
262
+ - warmup_proportion: 0.1
263
+ - seed: 42
264
+ - eval_max_steps: -1
265
+ - load_best_model_at_end: False
266
+
267
+ ### Training Results
268
+ | Epoch | Step | Training Loss | Validation Loss |
269
+ |:-----:|:----:|:-------------:|:---------------:|
270
+ | 0.001 | 1 | 0.1811 | - |
271
+ | 0.05 | 50 | 0.3964 | - |
272
+ | 0.1 | 100 | 0.0705 | - |
273
+ | 0.15 | 150 | 0.0115 | - |
274
+ | 0.2 | 200 | 0.0477 | - |
275
+ | 0.25 | 250 | 0.0022 | - |
276
+ | 0.3 | 300 | 0.0044 | - |
277
+ | 0.35 | 350 | 0.0017 | - |
278
+ | 0.4 | 400 | 0.001 | - |
279
+ | 0.45 | 450 | 0.0001 | - |
280
+ | 0.5 | 500 | 0.0006 | - |
281
+ | 0.55 | 550 | 0.0008 | - |
282
+ | 0.6 | 600 | 0.0003 | - |
283
+ | 0.65 | 650 | 0.0006 | - |
284
+ | 0.7 | 700 | 0.0003 | - |
285
+ | 0.75 | 750 | 0.0017 | - |
286
+ | 0.8 | 800 | 0.0001 | - |
287
+ | 0.85 | 850 | 0.0002 | - |
288
+ | 0.9 | 900 | 0.0 | - |
289
+ | 0.95 | 950 | 0.0002 | - |
290
+ | 1.0 | 1000 | 0.0002 | - |
291
+ | 0.001 | 1 | 0.0001 | - |
292
+ | 0.05 | 50 | 0.0002 | - |
293
+ | 0.1 | 100 | 0.0014 | - |
294
+ | 0.15 | 150 | 0.008 | - |
295
+ | 0.2 | 200 | 0.0017 | - |
296
+ | 0.25 | 250 | 0.0018 | - |
297
+ | 0.3 | 300 | 0.0187 | - |
298
+ | 0.35 | 350 | 0.0021 | - |
299
+ | 0.4 | 400 | 0.0001 | - |
300
+ | 0.45 | 450 | 0.0 | - |
301
+ | 0.5 | 500 | 0.0003 | - |
302
+ | 0.55 | 550 | 0.0001 | - |
303
+ | 0.6 | 600 | 0.0 | - |
304
+ | 0.65 | 650 | 0.0002 | - |
305
+ | 0.7 | 700 | 0.0 | - |
306
+ | 0.75 | 750 | 0.0003 | - |
307
+ | 0.8 | 800 | 0.0 | - |
308
+ | 0.85 | 850 | 0.0 | - |
309
+ | 0.9 | 900 | 0.0001 | - |
310
+ | 0.95 | 950 | 0.0001 | - |
311
+ | 1.0 | 1000 | 0.0 | - |
312
+ | 0.001 | 1 | 0.0 | - |
313
+ | 0.05 | 50 | 0.0001 | - |
314
+ | 0.1 | 100 | 0.0018 | - |
315
+ | 0.15 | 150 | 0.0001 | - |
316
+ | 0.2 | 200 | 0.0042 | - |
317
+ | 0.25 | 250 | 0.0009 | - |
318
+ | 0.3 | 300 | 0.0001 | - |
319
+ | 0.35 | 350 | 0.0018 | - |
320
+ | 0.4 | 400 | 0.0002 | - |
321
+ | 0.45 | 450 | 0.0001 | - |
322
+ | 0.5 | 500 | 0.0 | - |
323
+ | 0.55 | 550 | 0.0001 | - |
324
+ | 0.6 | 600 | 0.0 | - |
325
+ | 0.65 | 650 | 0.0 | - |
326
+ | 0.7 | 700 | 0.0 | - |
327
+ | 0.75 | 750 | 0.0 | - |
328
+ | 0.8 | 800 | 0.0 | - |
329
+ | 0.85 | 850 | 0.0 | - |
330
+ | 0.9 | 900 | 0.0 | - |
331
+ | 0.95 | 950 | 0.0 | - |
332
+ | 1.0 | 1000 | 0.0 | - |
333
+ | 0.001 | 1 | 0.0 | - |
334
+ | 0.05 | 50 | 0.0 | - |
335
+ | 0.1 | 100 | 0.0005 | - |
336
+ | 0.15 | 150 | 0.0025 | - |
337
+ | 0.2 | 200 | 0.0 | - |
338
+ | 0.25 | 250 | 0.0002 | - |
339
+ | 0.3 | 300 | 0.0 | - |
340
+ | 0.35 | 350 | 0.0003 | - |
341
+ | 0.4 | 400 | 0.0001 | - |
342
+ | 0.45 | 450 | 0.0 | - |
343
+ | 0.5 | 500 | 0.0 | - |
344
+ | 0.55 | 550 | 0.0 | - |
345
+ | 0.6 | 600 | 0.0 | - |
346
+ | 0.65 | 650 | 0.0 | - |
347
+ | 0.7 | 700 | 0.0 | - |
348
+ | 0.75 | 750 | 0.0 | - |
349
+ | 0.8 | 800 | 0.0 | - |
350
+ | 0.85 | 850 | 0.0 | - |
351
+ | 0.9 | 900 | 0.0 | - |
352
+ | 0.95 | 950 | 0.0 | - |
353
+ | 1.0 | 1000 | 0.0 | - |
354
+
355
+ ### Framework Versions
356
+ - Python: 3.10.12
357
+ - SetFit: 1.0.3
358
+ - Sentence Transformers: 2.4.0
359
+ - Transformers: 4.37.2
360
+ - PyTorch: 2.1.0+cu121
361
+ - Datasets: 2.17.1
362
+ - Tokenizers: 0.15.2
363
+
364
+ ## Citation
365
+
366
+ ### BibTeX
367
+ ```bibtex
368
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
369
+ doi = {10.48550/ARXIV.2209.11055},
370
+ url = {https://arxiv.org/abs/2209.11055},
371
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
372
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
373
+ title = {Efficient Few-Shot Learning Without Prompts},
374
+ publisher = {arXiv},
375
+ year = {2022},
376
+ copyright = {Creative Commons Attribution 4.0 International}
377
+ }
378
+ ```
379
+
380
+ <!--
381
+ ## Glossary
382
+
383
+ *Clearly define terms in order to be accessible across audiences.*
384
+ -->
385
+
386
+ <!--
387
+ ## Model Card Authors
388
+
389
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
390
+ -->
391
+
392
+ <!--
393
+ ## Model Card Contact
394
+
395
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
396
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/paraphrase-mpnet-base-v2",
3
+ "architectures": [
4
+ "MPNetModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-05,
15
+ "max_position_embeddings": 514,
16
+ "model_type": "mpnet",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 1,
20
+ "relative_attention_num_buckets": 32,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.37.2",
23
+ "vocab_size": 30527
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "2.0.0",
4
+ "transformers": "4.7.0",
5
+ "pytorch": "1.9.0+cu102"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null
9
+ }
config_setfit.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "normalize_embeddings": false,
3
+ "labels": [
4
+ "Automatic subscription confirmation emails",
5
+ "Do-not-reply or no-reply emails (explicitly mentioned in email)",
6
+ "Email Delivery failure notifications",
7
+ "Out-of- office replies",
8
+ "Password reset emails",
9
+ "Promotional emails",
10
+ "Read receipts or delivery confirmation",
11
+ "Reminders",
12
+ "Security Alerts",
13
+ "System Alerts"
14
+ ]
15
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b1a9a1c4d9eda2b6140037ce6181f372085fcb40de36fb34318e99fc520d334
3
+ size 437967672
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dbbaa514e577508a4cdc11dd3c9094ca55a50ba39dfb126619a3abbd1d0ea32
3
+ size 64887
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "[UNK]",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "104": {
28
+ "content": "[UNK]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "30526": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "do_basic_tokenize": true,
48
+ "do_lower_case": true,
49
+ "eos_token": "</s>",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 512,
52
+ "never_split": null,
53
+ "pad_token": "<pad>",
54
+ "sep_token": "</s>",
55
+ "strip_accents": null,
56
+ "tokenize_chinese_chars": true,
57
+ "tokenizer_class": "MPNetTokenizer",
58
+ "unk_token": "[UNK]"
59
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff