Adreno99's picture
Push model using huggingface_hub.
f239c17 verified
metadata
library_name: setfit
metrics:
  - accuracy
pipeline_tag: text-classification
tags:
  - setfit
  - sentence-transformers
  - text-classification
  - generated_from_setfit_trainer
widget:
  - text: "nasfund este\n\n \n\nAccounts Payable\n\n \n\nIT Division\n\n \n\n05 March 2024\n\n \n\n2 x Laptops for nasfund Lae\n\n \n\n \n\nDatec\n\n \n\n2 x Laptops for nasfund Lae. One will be issued to their new Employer Service\nofficer and the other one will be used as their ID laptop when they go onsite to\nemployers.\n\n \n\nK10,532.52\n\n \n\nPO\n\n \n\n \n\n \n\nAttached Quote from Datec\n\nRequested by:\nWK,\n\nAsaph Kuliniasi\n\nHelp Desk Analyst\n\n05 March 2024\n\nRecommended By:\n\nSamuel Topotol |\nTL Infrastructure\n05 March 2024\n\n \n\n \n\n05 March 2024\n\f"
  - text: "Poreporena Freeway\n\\V P.O.Box 504, Port Moresby, NCD\n\ndatec\n\nPapua New Guinea\nPhone: +675-303 1333 Fax: +675-325 9066\n\nInnovative Solutions | Valued Services\n\n \n\nStatement For: STATEMENT OF\nNational Superannuation Fund B ACCOU NT\nP.O. Box 5791\n\nBOROKO\n\nNational Capital District 111\n\nStatement Date: 31-Mar-2024\n\n \n\nPoreporena Freeway\n\nP.O.Box 504, Port Moresby, NCD\n\nPapua New Guinea\n\nPhone: +675-303 1333 Fax: +675-325 9066\n\nStatement Date: 31-Mar-2024\n\nREMITTANCE ADVICE\n\nNational Superannuation Fund B\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n3. EFT or Bank Deposit:\n\n \n\nDatec customer account number in the reference field.\nTo Datec (PNG) Limited at BSP account number\n1000584670. Ensure you include your Datec customer\naccount number in the reference field.\n\nTo ensure prompt credit to your Datec account number please fax a remittance advice to\n+675 325 9066 or email to: accounts@datec.com.pg showing the amount paid, date paid and\n\n \n\n \n\nyour Datec customer account number.\n\n \n\n27/04/2024 11:48:42 AM\n\nPage 2 of 2\n\n \n\n \n\n \n\n \n\n \n\nAccount: 12226168 12226168\nTIN: 500000740\nDate Invoice Reference Type} Amount Balance Date Reference | Amount\n|\n90+ days 60 days 30 days Current Total Balance Amount Due (K)\n-115,689.12 9,361.44 145,146.46 271,320.98 310,139.76 310,139.76\nTERMS: Trading Terms are strictly 30 days only\nHOW TO PAY YOUR ACCOUNT:\n1. By Cheque: Please write your Datec customer account number on the\nback of your cheque, attach remittance advice and post or\ndeliver to:\nDATEC (PNG) Limted PO Box 504, Port Moresby, Papua New\nGuinea.\n2. BillPay: Datec BillPay number is 10086. Ensure you include your\n\f"
  - text: "\\\\ Poreporena Freeway\nDY P.O.Box 504, Port Moresby, NCD\nPapua New Guinea\n\nInnovative Solutions | Valued Services\n\nHEAD OFFICE\nDatec (PNG) Limited\n\nBranches\nLae\n\nTel: +67:5 473 0600\nFax: +675 472 7277\n\n \n\nSletjford St & Coronation Dr.\n\n   \n\nMt Hagen Goroka\nHagen Drive Elizabeth Street\nTel: +675 542 3233 Tel: +675 532 3168\n\nFax: +675 542 3234\n\nFax: +675 532 3166\n\nMadang\n\nNuna Street\nTel: +675 422 2133\nFax: +675 422 2134\n\nKokopo\n\nKokopo Beach Front\nTel: +675 982 5399\nFax: +675 982 5503\n\nAlotau\n\nCharles Abel Highway\nTel: +675 6410617\nFax: +675 6410619\n\nQUOTATION / PROFORMA INVOICE\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\nQuote Te: paliver Ta: Account: 12226168\naa & . aac Customer Ref: 1X HP PB 450 G10 Quote No: 4770363\national Superannuation Fund B Attn: Asaph Ki Delivery Instructions: Date: 01-MAR-24\nP.O. Box 5791 Head Office, BSP Haus-Level 3, ea ate: HENS\nBOROKO Harbour City, Port Moresby. : TIN: 500000740\nNational Capital District 111 Page No. 1 of 1\nVALID FOR 14 DAYS ONLY Rep: Douglas Laimo\nQUOTATION/PROFORMA INVOICE ONLY .\n** NO DELIVERY ***** Service Job:\nLine Item Code Item Description UOM Quantity B/Ord Unit Price Extended Price\n1.0 | 003275276 HP PB 450 G10 i5/16/256 9E949P EACH 2.00 0.00 4,424.61 8,849.22\n** [5-1334U CPU/6Gb RAM/256Gb SSD/15\"Wint1 Poos *™ ASsct No.\nAvailability: 17x available in stock. v9>7-¢2\n2.0 | 004611240 Simpl USB-C 12-in-1 Multiport Docking Stati “)| EACH 2.00 0.00 362.90 725.80\nAvailabilty: 9x available in stock Cowl Means)\nbeget No OFKH\nUO Luptip )\nSalesperson: Douglas Laimo Signature: Date:___ 01/03/2024 Goods & Service Tax (K) 957.50\nTERMS: Trading terms are strictly 30 days only. Datec may at its discretion register any customer that defaults in payments Total (K) 10,532.52\nand has debts over their trading terms with the Credit & Data Bureau of FING. , :\n\nHOW TO PAY YOUR ACCOUNT:\n\n1. EFT or Bank Deposit:\n2. By Purchase Order:\n\n \n\n \n\n \n\nTo Datec (PNG) Limited at BSP account number 1600584670, BSB number 088-951. Ensure you include the above Quote/Invoice number in the reference field.\nApplicable only to Credit Customers.\n\nTo ensure prompt credit to your Datec account number please fax a remittance a:tvice to +675 325 9066 or email to: accounts@datec.com.pg showing the amount paid, date paid and your Datec\n\n \n\n(customer account number. For any further Sales Enquiries, email: sales@datec com.pg or contact the Salesperson.\n\nPowered by PRONTO xi\n\nPage 1 of 1\n\f"
  - text: "   \n\nPort Moresby Lae Hagen\ni IE P.O.BOX 1618, BOROKO P.O.BOX 2507, LAE Building C, Unit 1, Section 06\nAq | i NCD, PNG MOROBE, PNG Mt Hagen, WHP, PNG\nPhone: (675) 313 9800 Phone: (675) 472 5488 Phone: (675) 7528 7200\nPhone: (675) 7232 1300 Phone: (675) 7054 4494 Phone: (675) 7590 5096\n\nsales@theodist.com.pg\n\nBUSINESS SUPERSTORE is miler\nGST REG NO 377\n\nsaleslae@theodist.com.pg\n\nTIN NO 500000599 _\n\nsaleshagen@theodist.com.pg\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\nPrinted on 5/03/2024 11:54:13 AM\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\nStatement For:\n\nNATIONAL SUPERANNUATION FUND Statement Date: 29/02/2024\n\nLIMITED Account: NASFUND\n\nPO BOX 5791\n\nBOROKO\n\nNATIONAL CAPITAL DISTRICT STATEMENT\n\nPAPUA NEW GUINEA\n\nPh: 325 9522\n\nDate Doc# Reference Type Amount Running Balance\n30-JUN-2023 | 3375151 NES 0001937 IN 900.00 900.00\n25-JAN-2024 | 3537235 . hk PF007199 IN 1,119.99 2,019.99\n19-JAN-2024 | 3542287 4 Avge PF007205 IN 749.99 2,769.98\n19-JAN-2024 | 3543104 Vv & tr PF007204 IN 4,949.99 7,719.97\n19-JAN-2024 | 3543106 Vv Rupel PF007203 IN 8,959.99 16,679.96\n19-JAN-2024 | 3544420 Vv hep PF007207 IN 1,707.74 18,387.70\n31-JAN-2024 | 3558149 « PF007237 IN 1,094.82 19,482.52\n15-FEB-2024 | 3567378 sieKt PF007307 IN 3,440.01 22,922.53\n01-FEB-2024 | 3570011 V Ceprd PF007237 IN 375.00 23,297.53\n15-FEB-2024 | 3570861 v pop eh PF007322 IN 5,454.25 28,751.78\n29-FEB-2024 | 3571309 Ve PF007333 IN 19,069.50 47,821.28\n09-FEB-2024 | 3573944 Vat PF007289 IN 69.00 47,890.28\n15-FEB-2024 | 3582517 SRé PF0O07317 IN 443.69 48,333.97\n29-FEB-2024 | 3583878 \\/ ae PF007333 IN 34,004.99 82,338.96\n15-FEB-2024 | 3584563 V hopte PF007324 IN 1,290.01 83,628.97\n29-NOV-2022 | 60067438 PO# PF006021 IN 21.86 83,650.83\n21-FEB-2024 | 80599957 Sanh PFO07315 IN 890.00 84,540.83\n31-JAN-2024 | 3558149AA,/ aph PF007237 IN 773.81 85,314.64\n\n90+ days 60 days 30 days Current Total Balance Due\n$921.86 $0.00 $19,356.33 | $65,036.45 $85,314.64\nThis account is > 1 month overdue\n\nAccount Name: THEODIST LIMITED\n\nBank Name: | BANK OF SOUTH PACIFIC | KINA BANK WESTPAC\n\nBSB Number: 088-968 028-111 038-007\n\nAccount Number: 1000583563 60024605 6000823911\n\nBranch Name: WAIGANI DRIVE PORT MORESBY WAIGANI\n\nSwift Code: BOSPPGPM KINIPGPGXXX WPACPGPMXXX\n\nPlease email payment advice to remittance@theodist.com.pg\n\nfein POBOX 1618, BOROKO — P.O.BOX 2607, LAE REMITTANCE ADVICE\n: NCD, PNG MOROBE, PNG.\n\nLOGOS Phone: (675) 313.9800 Phone: 76) 472 5488 ;\n\nBUSINESS SUPERSTORE CUO icone S00 ee eee a Statement for Period Account Total Balance Due\nPlease detach this Remittance Advice and Pam OM NASFUND BEG S464\nsend with your payment.\n\nPage 1 of 1\n\nVisit our website: www.theodist.com\n\f"
  - text: "Invoice\n\n   \n\npropertypng...\n\nNASFUND LTD Invoice date Property PNG Limited 01062023 (2023-06-08) (2023-06-13) (2023-06-21)\nP.O Box 5791 2023-07-14 P.O. Box 1067\nBoroko BOROKO, NCD\n\nDue date\n\n \n   \n\nNational Capital District Papua New Guinea\n\nPapua New Guinea 2023-07-14 10! ee\nA COC Exempt BY: 1 0Sul\nAttention: Mr. Fiona Invelee ae COI 1-72109 TIN 501080230 a |\nNelson = ab oz 23\nQuote number\n2023016\n\nValuation - NASFUND Ltd properties\n\n \n\n \n\n \n\n \n\n \n\nQty Unit price Total\n\n| 10,000.00 10,000.00\n\n1 10,000.00 10,000.00\n\n1 10,000.00 10,000.00\npl\n\nTotal 30,000.00\n\n \n\n \n\n \n\nHow to Pay:\n\nDirect Deposit;\n\nBank: Westpac Bank PNG Limited - Boroko Branch\nBSB Number: 038006\n\nAccount Name: Property PNG Limited\n\nAccount Number: 600 361 6070\n\f"
inference: true
model-index:
  - name: SetFit
    results:
      - task:
          type: text-classification
          name: Text Classification
        dataset:
          name: Unknown
          type: unknown
          split: test
        metrics:
          - type: accuracy
            value: 1
            name: Accuracy

SetFit

This is a SetFit model that can be used for Text Classification. 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 Type: SetFit
  • Classification head: a LogisticRegression instance
  • Maximum Sequence Length: 512 tokens
  • Number of Classes: 4 classes

Model Sources

Model Labels

Label Examples
1
  • ' \n\n \n\n \n\n \n\nContact: PRAMOD KHNADWAL (+91) 9937148709\n\n
2
  • ' \n\nNASFUND FINANCE\nRECEIVED\n\nDate 2/04 Time: kD" 7 jee\nInitials: E- r
3
  • 'VI ww\n~~ Sponsorship Agreement EMTV National News Market Report 2024 nasfund\n2p onsorsiip Agree reer REE REDON 2026 = see\n\nEMTV National News Market Report Naming Rights Sponsorship Agreement\n\n“The Agreement”\nbetween\nMedia Niugini Limited\nand\nNasfund Limited\n1. Agreement Date\n\nAF Ocf\n\nThe Agreement is made on the\n\n2. Purpose\n\nThe Agreement outlines the understandings (Key Terms and Conditions of engagement)\nbetween Media Niugini Limited (MNL), trading as “EMTV” (“The Broadcaster’), and\nNasfund Limited (“The Client”), collectively referred to as “The Parties”.\n\n3. Key Terms and Conditions\n\n3.1 Agreement Period\n\nStarting on 4" January 2024 and ending on 31st December 2024 inclusive.\n\n3.2 Client's Products & Services\n\nThe Client to provide to the Broadcaster copies of 30 second TVCs, with rights to\nchange/rotate monthly and full rights to use (non-exclusive) on EMTV channel for a\nperiod of twelve (12) months, on 1% January 2024 and ending on 31st December\n2024. It is the responsibility of the Client to inform the Broadcaster in writing of all\nproducts to be advertised under this agreement.\n\nThe Client to issue a Company Purchase Order for all EMTV services to be engaged\nPrior to every rhonth's Airtime booking. In the event that a Company Purchase Order\nis unable to be issued prior to the agreed broadcast date, a signed “Authority to\nTelecast” (ATT) is required prior to the agreed broadcast date.\n\x0c'
  • 'N\n\nMEDIA NIUGINI LIMITED\nP O Box 443\nBoroko, NCD.\nPort Moresby\nPNG\n\nTV\n\nSOLD NASFUND\n\nTO: P.O.BOX 5791\nBOROKO, NCD\nPAPUA NEW GUINEA\n\nATTN: ACCOUNTS PAYABLE\n\nINV0000961081 31/03/2024 SIGNED AGREEMENT\n\nIN - Invoice\n\nDB - Debit Note\n\nCR - Credit Note\n\nIT - Interest Payable\n\nPY - Applied\nReceipt\n\nED - Eamed\nDiscount\nAD -\n\nUC - Unapplied\nCash\nRF - Refund\n\nPlease pay amount showing.\n\n1 - 30 DAYS O/DUE 31 - 60 DAYS O/DUE\n17,325.00 0.00 0.00\n\n \n\n61 - 90 DAYS O/DUE\n\nCUSTOMER NO.:\n\nREMIT TO ADDRESS:\n\nMedia Niugini Ltd\n\nPO Box 443\n\nBoroko, 411, PNG\n\nPlease Deposit into: Westpac\nAccount : 609736001\n\n31/03/2024\n\nTotal:\nCredit Limit:\nCredit Available:\n\n0.00\n\n \n \n\n \n \n\nNASO01\n1\n3/31/2024\n\n \n \n\n \n\n17,325.00\n\n0.00\n0.00\n\nOVER 90 DAYS O/DUE\n\n \n\x0c'
  • "nasfund'\n\nNATIONAL SUPERANNUATION FUND LIMITED\n(CLIENT)\nAND\nTUMPI SECURITY SERVICE\n(CONTRACTOR)\n\nCONTRACT FOR SECURITY SERVICES\n\n \n\nNational Superannuation Fund Limited\nLevel 3, BSP Haus\nHarbour City\nP O Box 5791\nBoroko, NCD\nPapua New Guinea\nPhone: (675) 313 1829\n\x0c"
0
  • 'WATERFRONT\n\nFOODWORLD\n\nP.O.BOX 889, KONEDOBU, NATIONAL CAPITAL DISTRICT\nTELEPHONE: (675) 320 0460 OR (675) 305 8600\nEMAIL: grocery.<vaterfront@garamut.com.pg\n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\nDATE:\nae 4/03/2024 11:37:26 AM\nINVOICE\nCUSTOMER: WFI141 ABABA MAUREEN\nADDRESS: LEVEL3BSPHAUS HARBOUR CITY NCD 3131929\n[ Cashier P.0 Register eS CUseEPSiemale NASEUND\n#\nBECKY SIMON

Evaluation

Metrics

Label Accuracy
all 1.0

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("Adreno99/nasfund_setfit_pretrained")
# Run inference
preds = model("nasfund este

 

Accounts Payable

 

IT Division

 

05 March 2024

 

2 x Laptops for nasfund Lae

 

 

Datec

 

2 x Laptops for nasfund Lae. One will be issued to their new Employer Service
officer and the other one will be used as their ID laptop when they go onsite to
employers.

 

K10,532.52

 

PO

 

 

 

Attached Quote from Datec

Requested by:
WK,

Asaph Kuliniasi

Help Desk Analyst

05 March 2024

Recommended By:

Samuel Topotol |
TL Infrastructure
05 March 2024

 

 

05 March 2024
")

Training Details

Training Set Metrics

Training set Min Median Max
Word count 26 212.4310 640
Label Training Sample Count
0 18
1 10
2 8
3 22

Training Hyperparameters

  • batch_size: (32, 32)
  • num_epochs: (2, 2)
  • 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: 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.0133 1 0.1389 -
0.6667 50 0.0091 -
1.3333 100 0.0021 -
2.0 150 0.0025 -

Framework Versions

  • Python: 3.10.12
  • SetFit: 1.0.3
  • Sentence Transformers: 3.0.1
  • Transformers: 4.39.0
  • PyTorch: 2.3.0+cu121
  • Datasets: 2.20.0
  • Tokenizers: 0.15.2

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}
}