rendulic's picture
Update README.md
65f1869 verified
metadata
library_name: setfit
tags:
  - setfit
  - sentence-transformers
  - text-classification
  - generated_from_setfit_trainer
base_model: sentence-transformers/all-MiniLM-L6-v2
metrics:
  - accuracy
widget:
  - text: >-
      James



      From: The Desk of Ajibola James

      Senior Manager: Pacific International Bank PLC.
                      40 Marina Street
                      Lagos

      Dear friend,


      First, I must solicit your confidence in this transaction. This is by
      virtue 

      of its nature being utterly confidential and  top secret. We have decided
      to 

      contact you due to the urgency  of this  transaction, as we have been
      reliably 

      informed of your discretness, trustworthy and ability to carry out
      legitimate  

      business.


      THE PROPOSITION: An American, Mr. Shaline Adam, an Oil merchant with the 

      Federal Government of  Nigeria, until his death with his whole family on
      an 

      EgyptAir Flight #990, which  crashed into the Atlantic Ocean on October
      31, 

      1999, banked  with us at Pacific International Bank Plc Lagos and had a 

      closing balance of US$3.5,000,000.00 (Three Milion Five Hundred Thousand 

      United States  Dollars Only) as at the end of September, 2000. Attached
      here   

      is a CNN webpage on the unfortunate crash in 1999:   

      http://www.cnn.com/US/9911/02/egyptair990.list/index.html


      Valuable efforts have been made by the bank to get in touch  with any of
      the 

      Adam's family or relative, but to no avail. His Next of Kin was his wife
      that 

      was involved in the crash so for now there is no trace of his family.


      It is because of the perceived impossibility of locating a relative of
      the 

      Shaline Adam's family (since all his family are dead) that the bank is
      making 

      plans to ceed the said amount to the Defence Ministry for the procurement
      of 

      weapons of war. In order to avert this ugly situation, few of my
      colleagues 

      and I have decided to contact you and seek your   permission to have you
      stand 

      as a relative to Late Shaline Adam so that the total amount of US$3.5
      Million 

      Dollars will be processed and released in your favour into your personal 

      account.


      All documents and proofs to enable you get this fund will be   carefully 

      worked out. We have secured from the probate, an   order of Madamus, to
      locate 

      any of the deceased beneficiary.   Be rest assured that this transaction
      is 

      risk-free. Also, your share for offering to assist us and provide the 

      receiving account will be 10% of the total sum, while 90% will be for my 

      colleagues and I, which also would be in your account for safe custody
      and 

      probable future investment purpose in your country.


      As soon as we receive an acknowledgement of your willingness    to accept
      our 

      proposal, we shall furnish you with further details as we concluded all 

      arrangements to have the money transferred to you within 7 working days
      from 

      the date of commencement.


      If this proposal is acceptable to you, then furnish us with your most 

      confidential telephone and fax numbers  at which   time an application for
      the 

      fund release will be forwarded in your favour.


      Thank you in advance for your anticipated cooperation.


      Regards,


      Ajibola James


      Alternative mail:[email protected]
  - text: |-
      My Compliment


      From: Dr. Rasheed S. Abubakar,

      Dear Friend,

      My Compliment to you,

      I guess this letter may come to you as a surprise since I had no 
      previous correspondence with you.

      I am sending you this mail on behalf of the chairman tender board of 
      Independent National Electoral Commission (INEC) MR. SETTLEY DAZE. We 
      got your contact in our search for a reliable person to handle a very 
      confidential transaction involving the transfer of Forty Nine Million, 
      Five Hundred Thosand United States Dollars US$49.5Million.

      The above fund is not connected with arms, drugs or money laundering. 
      It is the product of an over invoiced Contract awarded in 2001 by INEC 
      to a foreign company for the construction of high rise estate in the 
      federal capital territory.

      The contract has long been executed and payment of the actual contract 
      amount has been paid to the foreign contractor leaving the balance, 
      which my colleague and I now want to transfer out of Nigeria into a 
      reliable foreign account for our personal use.

      As civil servants we are not allowed to run foreign accounts. Hence we 
      have chosen you to front and support us as the beneficiary to be paid. 
      If you are interested in the proposal kindly get back to me by sending 
      me your letter of acceptance along with your direct telephone and fax 
      numbers, For your support and partnership, please reply me to negotiate 
      your fees or the percentage you wish to be paid when the funds arrive 
      your bank account. 

      Further details about this transaction will be discussed in the 
      subsequent correspondence. Note also that the particular nature of your 
      business is irrelevant to this transaction and all local contacts and 
      arrangements are in place for a smooth and successful conclusion of 
      this transaction.

      Be informed that we are aware of the way email proposals of this type 
      are being sent from this part of africa and as regards that, you should 
      please treat this with utmost attention knowing fully well that you 
      cannot and will not be compelled to assist us if you are not disposed 
      to.

      Contact me via my email account or you also reach me on this email 
      account [email protected] with your contact telephone and fax 
      numbers on response, I will call you for a discussion.

      Thank you as I await your response.

      Sincerely,


      Dr. Rasheed S. Abubakar.
  - text: >-
      How to resolve!



      www.rewire.comInternational Financial Services - RewireInternational
      Financial Services - RewireGood Day YvonneOpen the attach file sent ,after
      the departmental payment receipt has be uploaded we also sent awareness
      letter note to Mr chalan which should be sent to your bank directly by
      chalan,Please ensure chalan uploads the departmental payment receipt
      receipt as soon as possible because the amount to your account is more
      than $100,000 when converted from pound sterling to USD,please write him
      (chalan)as soon as possible to settle thisKind RegardsReire Paying
      Deptwww.rewire.com
  - text: >-
      Introduction/Business Proposal



      My Dear Friend , 

      GREETING!!!.With a humbled heart I commit myself this day to write 

      and ask for your benevolence and kind consideration of 

      my families plight for assistance. I am making this contact on behalf of
      my
       family not minding the consequences but hoping that you would understand our
       predicament and come to our aid and assist us. I would also kindly apologize
       for any inconvenience or embarrassment this might cause your person, as we
       neither know each other personally nor have had any previous contact or
       correspondence. 
      I am Julius Nsekou Mobutu Sese Sekou,son of the late president Mobutu Sese
      Sekou
       of the Congo Democratic Republic(former Republic of Zaire). 
      There was unrest (war) in my country which resulted in the overthrow and
       eventual of my father President 
      Mobutu Sese Sekou.My family members have since escaped 

      to Morocco while i am presently in Nigeria(West Africa) on political
      asylum. 

      Due to the political crisis,no member of my family can go back to the
      Congo
       Democratic Republic or transact any business investment there,also my fathers
       properties have been seized and Bank accounts frozen by the Government of
       Lawrent Joseph Kabila. 
      Before my father died ,he deposited the sum of $50.5 MILLION(USD) CASH in
      a
       PRIVATE SECURITY VAULT in Europe.Please we need your assistance in moving and
       securing this money in your bank accounts abroad,my family will compensate you
       adequately with 20% of the total amount for your assistance and co operation. 
      My family will want to invest this money abroad,and for this reason, i
      sincerely
       appeal to you to help us in setting up this business.May i also state that you
       will advice on areas of investment as regards your business and your country as
       the families foreign partner. 
      I look forward to further co-operation from you and will be grateful for
      your
       immediate response through the underlisted mediums. 
      Reply back to E-mail: [email protected]

      Yours Sincerely, 

      Julius Nsekou Mobutu & Entire Family.
  - text: >-
      FAMILY BUSINESS ASSISTANCE



      HIGHLY CONFIDENTIAL

      FROM: Prince Tunde O Adisaraki 

      MOBILE:234-90-509398

      MOBILE:234-80-33254029

      FAX:234-92726808
       
       
      Greetings, 
       
      This letter might surprise you because we have not met neither in person
      nor by correspondence. But I believe it is one day that you get to know
      somebody either in physical or through correspondence. I got your contact
      through some discreet inquiry from the chamber of commerce and industry,
      you and your organization were revealed as being quite astute in private
      entrepreneurship, one has no doubt in your ability to handle a financial
      business transaction.
       
      However,I am the first son of his Royal Majesty, Iginawari Nweke Adisaraki
      III  and the traditional ruler of Eleme Province in the oil area of Rivers
      State of Nigeria. I am making this contact to you in respect of US
      28,000,000.00 (Twenty eight million United States Dollars) which I
      inherited from my late father. This money was accumulated from royalties
      paid to my father as compensation by the oil firms located in our area as
      a result of oil presence on our land which hamper agriculture which is our
      major source of livelihood. Unfortunately my father died from protracted
      diabetes. But before his he called my attention and informed me that he
      lodged some funds on a two boxes with a security firm with an open
      beneficiary status. The lodgment Security Code Number was also revealed to
      me, he then advised me to look for a reliable business partner abroad, who
      will assist me in investing the money in a lucrative business as a result
      of economic instability in Nigeria.
       
      So this is the main reason why I am contacting you for us to move this
      money from the security firm to any country of your choice for investment
      purposes.  So I will like you to be the ultimate beneficiary, so that the
      funds can be moved in your name and particulars to any country of your
      choice where it will be claimed and invested. Hence my father have had
      intimated the security firm personnel that the beneficiary of the Box is
      his foreign partner whose particulars will be forwarded to the firm when
      due. 
       
      But I will guide you accordingly. As soon as the fund reaches, I will then
      come over to meet you in person, so that we can discuss physically on
      Investment entials.Based on this instance I and my family have unanimously
      decided to give you 20% of the total money and annual 5% of the after tax
      returns on investment for the first three years. Thereafter, the term
      shall be varied. 2% for charity homes and 3% for expenses, which may arise
      during the transaction, fax and phone bills inclusive. The balance of 70%
      you will invest and manage for my family. I hereby guarantee you that this
      is not government money, it is not drug money and it is not money from
      arms deal.

      Though you have to maintain high degree of confidentiality on this
      matter. 
       
      I will give you all proof of deposit and existence of money once urged and
      fully satisfied with you capability and honesty. I hope this will be the
      beginning of a prosperous relationship between my family and your family.
      Nevertheless if you are for any reason not interest, kindly inform me
      immediately so that I will look for another contact.
       
      I required also your private phone and fax numbers for easy
      communication.I am waiting for your quick response through my private
      phone or fax Number.
       
      I am waiting for your quick response. 
       
      Yours faithfully, 
       
      Prince Tunde Olusola Adisaraki (For the Family)
pipeline_tag: text-classification
inference: true
model-index:
  - name: SetFit with sentence-transformers/all-MiniLM-L6-v2
    results:
      - task:
          type: text-classification
          name: Text Classification
        dataset:
          name: Unknown
          type: unknown
          split: test
        metrics:
          - type: accuracy
            value: 0.96875
            name: Accuracy

SetFit with sentence-transformers/all-MiniLM-L6-v2

This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/all-MiniLM-L6-v2 as the Sentence Transformer embedding model. A LogisticRegression 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
1
  • 'HELP ME AND MY FAMILY PLEASE.\n\n\nDEAR FRIEND,\n\nTHROUGH THE COURTESY OF BUSINESS OPPORTUNITY, I TAKE LIBERTY ANCHORED ON A\nSTRONG DESIRE TO SOLICIT YOUR ASSISTANCE ON THIS MUTUALLY BENEFICIAL AND\nRISKFREE TRANSACTION WHICH I HOPE YOU WILL GIVE YOUR URGENT ATTENTION.\n\nI AM MR.SESAY MASSAQUOE I AM MOVED TO WRITE YOU THIS LETTER ,THIS WAS IN\nCONFIDENCE CONSIDERING OUR PRESENT CIRCUMSTANCE AND SITUATION.\n\nI ESCAPED WITH MY WIFE AND CHILDREN OUT OF SIERRA- LEONE TO\nGROU-JIRNSSUM,A VILLAGE IN THE NETHERLANDS THROUGH THE AID OF THE UNITED\nNATIONS EVACUATION TEAM WHERE WE ARE NOW PRESENTLY RESIDING ON TEMPORARY\nPOLITICAL ASYLUM.\n\nHOWEVER DUE TO THIS SITUATION I DECIDED TO CHANGE MOST OF MY BILLIONS OF\nDOLLARS DEPOSITED IN SWISS BANK AND OTHER COUNTRIES INTO OTHER FORMS OF\nMONEY CODED FOR SAFE PURPOSE BECAUSE THE NEW HEAD OF STATES AHMED TEJAN\nKABBA MADE ARRANGEMENTS WITH THE SWISS GOVERNMENT AND OTHER EUROPEAN\nCOUNTRIES TO FREEZE ALL MY TREASURES DEPOSITED IN SOME EUROPEAN\nCOUNTRIES,HENCE I AND MY WIFE ALONG WITH MY CHILDREN, DECIDED LAYING LOW\nIN THIS OUR TEMPOERY POLITICAL ASYLUM CAMP HERE IN GROU JIRNSSUM IN THE\nNETHERLANDS TO STUDY THE SITUATION TILL WHEN THINGS GETS BETTER,SINCE\nPRESIDENT TEJAN KABBA TAKING OVER GOVERNMENT AGAIN IN SIERRA-LEONE ONE OF\nMY CHATEAUX IN SOUTHERN FRANCE WAS CONFISCATED BY THE FRENCH\nGOVERNMENT,AND AS SUCH WE HAD TO CHANGE OUR IDENTITY SO THAT OUR\nINVESTMENT WILL NOT BE TRACED AND CONFISCATED.\n\nI HAVE DEPOSITED THE SUM OF THIRTY MILLION,FIVE HUNDRED THOUSAND UNITED\nSTATES DOLLARS(US$30,500,000)WITH A SECURITY COMPANY FOR SAFEKEEPING.\nTHE FUNDS ARE SECURITY CODED TO PREVENT THEM FROM KNOWING THE ACTUAL\nCONTENTS.\n\nWHAT I WANT YOU TO DO NOW IS TO INDICATE YOUR INTEREST THAT YOU WILL\nASSIST ME AND MY IMMEDIATE FAMILY BY RECEIVING THE MONEY ON OUR BEHALF.\nTHE ACCOUNT REQUIRED FOR THIS PROJECT CAN EITHER BE PERSONAL,COMPANY OR AN\nOFFSHORE ACCOUNT THAT YOU HAVE TOTAL CONTROL OVER,YOUR AREA OF\nSPECIALISATION WILL NOT BE A HINDERANCE TO THE SUCCESSFUL EXECUTION OF\nTHIS TRANSACTION.\n\nACKOWLEDGE THIS MESSAGE,SO THAT I CAN INTRODUCE YOU TO MY FAMILY AS OUR\nFOREIGN TRUSTED PARTNER WHO SHALL TAKE CHARGE OF OUR INVESTMENT ABROAD\nWHERE WE NOW PLAN TO SETTLE.\n\nI WANT YOU TO ASSIST US IN INVESTING THIS MONEY,BUT I WILL NOT WANT OUR\nIDENTITY REVEALED.I WILL ALSO WANT TO BUY PROPERTIES AND STOCKS IN\nMULTI-NATIONAL COMPANIES AND TO ENGAGE IN OTHER SAFE AND NON SPECULATIVE\nINVESTMENTS.\nWE HAVE BEEN THROUGH A LOT OF HEALTH AND SPIRITUAL TURMOIL,HENCE WILL NEED\nYOUR UNDERSTANDING AND ASSISTANCE.\n\nMAY I AT THIS POINT EMPHASIZE THE HIGH LEVEL OF CONFIDENTIALLITY WHICH\nTHIS BUSINESS DEMANDS AND HOPE YOU WILL NOT BETRAY THE TRUST AND\nCONFIDENCE WHICH WE REPOSE IN YOU.I SHALL PUT YOU IN THE PICTURE OF THIS\nBUSINESS,I.E TELL YOU WHERE THE FUNDS ARE CURRENTLY BEING MAINTAINED AND\nALSO DISCUSS OTHER MODALITIES INCLUDING REMUNERATION FOR YOUR SERVICES.\n\nI SHALL INFORM YOU WITH THE NEXT LINE OF ACTION AS SOON AS I RECEIVE YOUR\nPOSITIVE RESPONSE.\n\nIS THIS PROPOSITION ATTAINABLE?IF IT IS,PLEASE KINDLY FURNISH ME\nIMMEDIATELY BY E-MAIL WITH YOUR DIRECT TELEPHONE AND FAX NUMBERS TO\nENHANCE THE CONFIDENTIALLITY WHICH THIS BUSINESS DEMANDS.\n\nBEST REGARDS\nMR.SESAY MASSAQUOE.\nREPLY TO MY PRIVATE EMAIL ADDRESS...........>[email protected]\n\n\n__________________________________________________________ \n For special offers on latest publications on Malta or by Maltese authors go to http://shop.di-ve.com'
  • 'New USDT Wallet Address for Payment\n\n\nDear customer Batel11,We want to inform you of an important update regarding our payment methods. As part of our ongoing efforts to streamline our payment processes and enhance security, we have established a new USDT (Tron) wallet address for receiving payments.New USDT Wallet Address: TPNq8zpLivwQi9FyaWhuycghYgB2i9RV4pPlease make sure to double-check the new wallet address before making any payments to avoid any potential issues. If you have any questions or need assistance with this update, please do not hesitate to contact our customer support team.Warm regards,'
  • "URGENT\n\n\nAttn: The President, \n\nDear Sir, \n\nMy mail may come to you as a surprise, but sincerely this is a \nproposal for a business deal that will benefit both of us. I am \ncontacting you after a frantic search for a person who will be \ntrustworthy and capable of handling a business of this dimension. \n\nMy name is Mr. Jonathan Mokoena, the Under-Secretary in charge of \nIntergration at the Specialized Technical Committee of the African \nUnion (AU), formerly Organization of Afriacn Unity (OAU). You may be \naware of the transformation of the OAU to AU, and the mandate to \nbuild a new united Africa modelled on the pattern of European Union \n(EU). For this therefore, the various African leaders recently \ninaugurated the New Patnership for African Development (NEPAD). NEPAD \nis to streamline Africa towards achieving a common market, defence \nforce, currency, foreign policy, judiciary etc. For the above, the \nvarious African countries have made whosoever contributions in \nhundreds of million dollars. We have equally received grants/aids \nfrom the EU, USA and other international governments and agencies. \nThese moneies in all have ran into millions of dollars. \n\n\nAs the officer in charge of receiving and managing these funds and \nexecuting the projects for which they are ment for, I have received \nall the money expected. I have also prepared my account which I have \nsubmitted to the AU High Command, and it has been approved by the AU \nSecratary-General, Dr. Amara Essy. However, in some of the money \nreceived, some of the donor countries and international bodies \nremitted to us amounts in excess of what they pledged. The AU before \nnow, has written to all of them to acknowledge the receipt of the \nmonies from them. The money in excess and which I have kept out with \nonly me having knowledge of it, is in the tune of Thirty-Five Million United States Dollars (US$35,000,000.00). As it is now, this money belongs to me, as neither the AU nor any of the donor countries/international agencies has declared their money missing. \n\n\nI am therefore contacting you to assist me with the movement and \nsafe-keeping of this fund. As a public officer in my category, I \ncannot openly put this money into any bank here in Addis Ababa, \nEthiopia, the AU headquarters where I am now, or in any other part of \nAfrica, as an account holder. This will surely raise eyebrows and \nexpose me. I have therefore concealed this amount of US$35M in four \nmetal trunk boxes, and declared them as artefacts belonging to a \nforeigner. I deposited the boxes with a Security Company based in \nSpain which has an affliate offices in Ghana, Cot d'Ivoire and South Africa. These cities are safe havens for this kind of transaction. \n\nThis transaction will however be hitch-free. So, I would therefore \nwant you to be in Banjul, The Gambia for the clearing and claiming of \nthis fund. I will furnish you with information/documents on how \n\nyou will stand as the beneficiary of the boxes. I have decided to \ngive to you 40% of the total amount involved. \n\nPlease I will want you to contact me on this e-mail address or the \nalternative: ([email protected]). \n\n\nAlso, you have to assure me of the secrecy and confidentiality in \nthis transaction. \n\nThanks in anticipation of your valued co-operation. \n\nMr. Jonathan Mokoena."
0
  • 'empty\n\n\nhello'
  • 'Re: Hello\n\n\nHmm On Mar 11 2024 08:31 PM TestUser21 wrote:It works!"

Evaluation

Metrics

Label Accuracy
all 0.9688

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("rendulic/setfit-ll-MiniLM-L6-v2-email-fraud-2024-05-18")
# Run inference
preds = model("How to resolve!


www.rewire.comInternational Financial Services - RewireInternational Financial Services - RewireGood Day YvonneOpen the attach file sent ,after the departmental payment receipt has be uploaded we also sent awareness letter note to Mr chalan which should be sent to your bank directly by chalan,Please ensure chalan uploads the departmental payment receipt receipt as soon as possible because the amount to your account is more than $100,000 when converted from pound sterling to USD,please write him (chalan)as soon as possible to settle thisKind RegardsReire Paying Deptwww.rewire.com")

Training Details

Training Set Metrics

Training set Min Median Max
Word count 1 260.5 816
Label Training Sample Count
0 18
1 14

Training Hyperparameters

  • batch_size: (32, 32)
  • num_epochs: (3, 3)
  • max_steps: -1
  • sampling_strategy: oversampling
  • num_iterations: 60
  • body_learning_rate: (0.0001, 0.0001)
  • head_learning_rate: 0.0001
  • loss: CosineSimilarityLoss
  • distance_metric: cosine_distance
  • margin: 0.25
  • end_to_end: False
  • use_amp: False
  • warmup_proportion: 0.1
  • seed: 42
  • eval_max_steps: -1
  • load_best_model_at_end: False

Training Results

Epoch Step Training Loss Validation Loss
0.0083 1 0.2559 -
0.4167 50 0.0007 -
0.8333 100 0.0002 -
1.25 150 0.0002 -
1.6667 200 0.0001 -
2.0833 250 0.0001 -
2.5 300 0.0001 -
2.9167 350 0.0001 -

Framework Versions

  • Python: 3.10.12
  • SetFit: 1.0.3
  • Sentence Transformers: 2.7.0
  • Transformers: 4.40.2
  • PyTorch: 2.2.1+cu121
  • Datasets: 2.19.1
  • Tokenizers: 0.19.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}
}