Edit model card

SetFit with sentence-transformers/paraphrase-mpnet-base-v2

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-mpnet-base-v2 as the Sentence Transformer embedding model. A SetFitHead instance is used for classification.

The model has been trained using an efficient few-shot learning technique that involves:

  1. Fine-tuning a Sentence Transformer with contrastive learning.
  2. Training a classification head with features from the fine-tuned Sentence Transformer.

Model Details

Model Description

Model Sources

Model Labels

Label Examples
0
  • 'Please send me quotation for a flight for Lindelani Mkhize - East London/ Durban 31 August @ 12:00'
  • 'I need to go to Fort Smith AR via XNA for PD days. I d like to take AA 4064 at 10:00 am arriving 11:58 am on Monday, May 11 returning on AA 4064 at 12:26 pm arriving 2:16 pm on Saturday May 16. I will need a Hertz rental. I d like to stay at the Courtyard Marriott in Fort Smith on Monday through Thursday nights checking out on Friday morning. Then I d like to stay at the Hilton Garden Inn in Bentonville AR on Walton Road Friday night checking out Saturday morning.'
  • 'I am planning to attend a Training in to be held between Nov 22-24 2023 at Avon, France (Specific address is Corning, 7 Bis Av. de Valvins, 77210 Avon, France) I have to arrive in France on the 21st of Nov and leave on the 25th of Nov. May you please help me with the travel itinerary and accommodation quotation (within walking distance preferably), transport in France to the hotel from the airport and back. I would like to put in an overseas travel request.'
1
  • "Hello, Can someone help to cancel my trip in Concur? I'm unable to do it in the system. Trip from San Francisco to Minneapolis/St Paul (MDFNTI)https://www.concursolutions.com/travelportal/triplibrary.asp"
  • 'Please cancel my flight for late March to Chicago and DC. Meetings have been cancelled. I am not available by phone.'
  • 'I need to cancel the below trip due to illness in family. Could you please assist with this?'
2
  • 'I have a travel booking question. I booked a flight for myself & a coworker, however, it was requested that we leave a couple days earlier than planned. How can I revise/move our first flight up without cancelling the whole trip? The flights home will remain the same.'
  • 'I just received my KTN today and added it to my profile. However, I have flights in Nov booked with United and Delta. Any way to add the KTN to those reservations so the tickets come through with Pre-Check?'
  • "Lerato I checked Selbourne B/B, its not a nice place. Your colleague Stella booked Lindelani Mkhize in Hempston it's a beautiful place next to Garden Court, please change the accommodation from Selbourne to Hempston. This Selbourne is on the outskirt and my colleagues are not familiar with East London"
3
  • 'Please add the below employee to our Concur system. In addition, make sure the Ghost Card is added into their profile. Lindsay Griffin lgriffin@arlingtonroe.com'
  • "Good afternoon - CAEP has 4 new staff members that we'd like to set - up new user profiles for. Please see the below information and let me know should anything additional be required. Last First Middle Travel Class Email Gender DOB Graham Rose - Helen Xiuqing Staff rose - helen.graham@caepnet.org Female 6/14/1995 Gumbs Mary - Frances Akua Staff mary.gumbs@caepnet.org Female 10/18/1995 Lee Elizabeth Andie Staff liz.lee@caepnet.org Female 4/23/1991 Gilchrist Gabriel Jake Staff gabriel.gilchrist@caepnet.org Male"
  • 'Good Morning, Please create a profile for Amelia West: Name: Amelia Jean - Danielle West DOB: 05/21/1987 PH: 202 - 997 - 6592 Email: asuermann@facs.org'
4
  • 'Invoices October 2019 Hi, My name is Lucia De Las Heras property accountant at Trion Properties. I am missing a few receipts to allocate the following charges. Would you please be able to provide a detailed invoice? 10/10/2019 FROSCH/GANT TRAVEL MBLOOMINGTON IN - 21'
  • 'I would like to request an invoice/s for the above-mentioned employee who stayed at your establishment. Thank you for the other invoice August 2023 & the confirmation for the new reservation 01st - 04th October 2023, Thanking you in Advance!'
  • "Hello, Looking for an invoice for the below charge to Ryan Schulke's card - could you please assist? Vendor: United Airlines Transaction Date: 02/04/2020 Amount: $2,132.07 Ticket Number: 0167515692834"
5
  • 'This is the second email with this trip, but I still need an itinerary for trip scheduled for January 27. Derek'
  • 'Please send us all the flights used by G4S Kenya in the year 2022. Sorry for the short notice but we need the information by 12:00 noon today.'
  • 'Jen Holt Can you please send me the itinerary for Jen Holt for this trip this week to Jackson Mississippi?'
6
  • "I've had to call off my vacation. What are my options for getting refunded?"
  • "Looks like I won't be traveling due to some health issues. Is getting a refund for my booking possible?"
  • "I've fallen ill and can't travel as planned. Can you process a refund for me?"
7
  • 'The arrangements as stated are acceptable. Please go ahead and confirm all bookings accordingly.'
  • "I've reviewed the details and everything seems in order. Please proceed with the booking."
  • 'This travel plan is satisfactory. Please secure the necessary reservations.'
8
  • 'I need some clarification on charges for a rebooked flight. It seems higher than anticipated. Who can provide more details?'
  • 'Wishing you and your family a very Merry Christmas and a Happy and Healthy New Year. I have one unidentified item this month, hope you can help, and as always thanks in advance. Very limited information on this. 11/21/2019 #N/A #N/A #N/A 142.45 Rail Europe North Amer'
  • "We've identified a mismatch between our booking records and credit card statement. Who can assist with this issue?"

Uses

Direct Use for Inference

First install the SetFit library:

pip install setfit

Then you can load this model and run inference.

from setfit import SetFitModel

# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("mann2107/BCMPIIRABSetFit")
# Run inference
preds = model("Thank you for your email. Please go ahead and issue. Please invoice in KES")

Training Details

Training Set Metrics

Training set Min Median Max
Word count 1 30.4097 124
Label Training Sample Count
0 16
1 16
2 16
3 16
4 16
5 16
6 16
7 16
8 16

Training Hyperparameters

  • batch_size: (16, 2)
  • num_epochs: (1, 1)
  • max_steps: -1
  • sampling_strategy: oversampling
  • body_learning_rate: (2e-05, 1e-05)
  • head_learning_rate: 0.01
  • loss: CosineSimilarityLoss
  • distance_metric: cosine_distance
  • margin: 0.25
  • end_to_end: True
  • use_amp: False
  • warmup_proportion: 0.1
  • max_length: 512
  • seed: 42
  • eval_max_steps: -1
  • load_best_model_at_end: True

Training Results

Epoch Step Training Loss Validation Loss
0.0009 1 0.2058 -
0.0434 50 0.1316 -
0.0868 100 0.0328 -
0.1302 150 0.0038 -
0.1736 200 0.0018 -
0.2170 250 0.0009 -
0.2604 300 0.002 -
0.3038 350 0.0008 -
0.3472 400 0.0006 -
0.3906 450 0.001 -
0.4340 500 0.0011 -
0.4774 550 0.0005 -
0.5208 600 0.0009 -
0.5642 650 0.0003 -
0.6076 700 0.0002 -
0.6510 750 0.0003 -
0.6944 800 0.0009 -
0.7378 850 0.0002 -
0.7812 900 0.0002 -
0.8247 950 0.0002 -
0.8681 1000 0.0004 -
0.9115 1050 0.0002 -
0.9549 1100 0.0003 -
0.9983 1150 0.0003 -
1.0 1152 - 0.0699
  • The bold row denotes the saved checkpoint.

Framework Versions

  • Python: 3.9.16
  • SetFit: 1.1.0.dev0
  • Sentence Transformers: 2.2.2
  • Transformers: 4.21.3
  • PyTorch: 1.12.1+cu116
  • Datasets: 2.4.0
  • Tokenizers: 0.12.1

Citation

BibTeX

@article{https://doi.org/10.48550/arxiv.2209.11055,
    doi = {10.48550/ARXIV.2209.11055},
    url = {https://arxiv.org/abs/2209.11055},
    author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
    keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
    title = {Efficient Few-Shot Learning Without Prompts},
    publisher = {arXiv},
    year = {2022},
    copyright = {Creative Commons Attribution 4.0 International}
}
Downloads last month
0
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Model tree for mann2107/BCMPIIRABSetFit

Finetuned
(246)
this model