metadata
library_name: setfit
tags:
- setfit
- sentence-transformers
- text-classification
- generated_from_setfit_trainer
base_model: BAAI/bge-small-en-v1.5
metrics:
- accuracy
widget:
- text: >-
b'\xe2\x80\x9cnasfund &&\n\nMemorandum\nTo: Accounts Payables
Office\nDate: 15 February 2024\nFrom: Niasul. K. Lillie\nRe: Binding Clear
Cover & Hard Cover for HQ\n\n \n\n \n\n \n\n \n\n \n\nPAYEE Theodist
Ltd\n\nPURPOSE Supply Binding Clear Cover & Hard Cover for NSF HQ (NIL
STOCK on Clear\nCover)\n\nAMOUNT K1,290.01\n\nMethod of Purchase
Order\n\nPayment\n\n \n\n \n\n \n\n \n\n| refer above request for approval
of this Urgent Request.\n\n \n\nRequested by: Ak fu\n\nNiasul. Kisokau-
Lillie\n(AP) Finance\n\nDate: 15 /_02__/_2024__\n\nApproved pa.\n\nDebbie
Oli\nChief Finance Officer\n\nDate: 15 / 0A) ay\n\nP +675 3131998 F +675
3201625\n\nBSP Haus, Level 3, Harbour City\nPO Box 5791, Port Moresby,
NCD\n\nnasfund.com.pg\n\n \n\n \n\x0c
- text: >-
b'nasfund National Superannuation fund Ltd\n\nP.O. Box 5791 Boroko
PNG\nTelephone: (675) 313 1813 PURCHASE ORDER\nEmail\nSupplier Details:-
Order No: PF007324\nTheodist Pty Ltd Requested by: Niasul.K.Lillie\nP O
Box 1618 Contact No:\nBoroko NCD 111\nPapua New Guinea Date Issued:
15-Feb-2024\nSupplier No: 10127\nDelivery Date: 16-Mar-2024\nPage: 1 of
1\nAttention: Rhoda Kunnopi\nDeliver To: Invoice To:\n\nNational
Superannuation fund Ltd\nBSP Haus Poreporena Freeway\n\n \n\nLevel
4\nBoroko\nDescription ay. Unit See iegr et\n1 Supply Binding Clear
Covers& Hard Covers 1 ALL 1,290.01 1,290.01\nfor NSF Head Office.\nQuote
No.3584563.\nOrder Total PGK : 1,290.01\n\nSignature Uy rT\n\nApproved By:
Maureen ABABA 15-Feb-2024\nRequisitioned By: Niasul KISOKAU
15-Feb-2024\n\x0c'
- text: >-
b'nasfund \\& National Superannuation fund Ltd\n\n \n\nP.O. Box 5791
Boroko PNG\nTelephone: (675) 313 1813 PURCHASE ORDER\nEmail:\nSupplier
Details:- Order No: PF006716\nProperty PNG Requested by: Gareth
Kobua\nP.O.Box 1067 Contact No:\nPapua New Guinea\nDate Issued:
25-Jul-2023\nSupplier No: 00469\nDelivery Date: 25-Jul-2023\nPage: 1 of
1\nAttention :\nDeliver To: Invoice To:\nNational Superannuation fund
Ltd\nBSP Haus Poreporena Freeway\nLevel 4\nDescription Qty. Unit at ee
i\n1 Service Fee for the External Property 0 ONLY 0.00
30,000.00\nValuation Service for Credit Corp. Property Portfolio.\nOrder
Total PGK : 30,000.00\n\nApproved By: Nathan KWARARA
25-Jul-2023\nRequisitioned By: Niasul KISOKAU
25-Jul-2023\n\nSignature\n\x0c'
- text: >-
b'Spencer Kaba\n<< SSS SSS SSeS\n\nFrom: Maria Kauvu
<[email protected]>\nSent: 19 February 2024 10:34\n\nTo: Spencer
Kaba\n\n\xe2\x80\x98Gc: [email protected]\n\nSubject: RE: Quote
request\n\nAttachments: IMG_20240219_095133.jpg\n\nHi
Spencer,\n\nAcknowledged receipt of your quote request. Please see
hi-lighted:\n\ne 11 Pauls Milk\xe2\x80\x944 cartons Nil stock we have
Meadow fresh\n\ne 100g Nestle Niugini Blend Coffee \xe2\x80\x94 1 carton
Nil stock we have Bon Aroma Roasted beans\ne\xc2\xa2 600m!
Nature\xe2\x80\x99s Own Water \xe2\x80\x94 4 cartons Nil stock we have
Wave water\n\ne 250ml Air Fresheners \xe2\x80\x94 10 pieces (2 different
fragrance) Nil stock\n\ne 750g Saxas Table Salt \xe2\x80\x94 2 pieces Nil
stock we have Super as per picture\n\nThank you and await your swift
response.\nKind regards,\n\nMaria Kauvu Nock\n\nCash & Carry Sales
Supervisor\n\nMobile: +675 7076 1246 | 755 86224\n\nOffice: +675 321 3733
| Ex: 816\n\nSection 6 Lot 22 Matirogo Street Koki Hubert Murray Highway
NCD\n\nFrom: Spencer Kaba [[email protected]]\n\nSent: Monday, February
19, 2024 8:19 AM\n\nTo: Ruth Viae <[email protected]>;
[email protected]\n\nCc: Niasul Kisokau <[email protected]>;
Maureen Ababa <[email protected]>\nSubject: Quote request\n\nHi
Ruth/Maria\n\nPlease quote us the following and kindly include the
delivery charge on the quote. Please note that we have already paid
o\ninvoice.\n\ne iL Pauls Milk \xe2\x80\x944 cartons\n\ne 100g Nestle
Niugini Blend Coffee \xe2\x80\x94 1 carton\n\ne 1KG Ramu Sugar
\xe2\x80\x94 4 bales (40 pieces)\n\ne 100g Carnation Coffeemate
\xe2\x80\x94 1 carton\n\ne 200g Nestle Milo \xe2\x80\x94 10 pieces\n\ne
100g Nestle Sunshine Milk powder \xe2\x80\x94 1 carton\ne 200g National
No. 1 tea bag \xe2\x80\x94 1 carton\n\ne 600m! Nature\xe2\x80\x99s Own
Water \xe2\x80\x94 4 cartons\n\ne 200g Axion paste (Kalamansi/Lime)
\xe2\x80\x94 1 carton\ne 250ml! Axion liquid (Lemon) \xe2\x80\x94 1
carton\n\ne Kitchen sponge \xe2\x80\x94 10 pieces\n\x0c
- text: >-
b'Port Moresby Lae Hagen\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\nWa
P.O.BOX 1618, BOROKO P.O.BOX 2507, LAE Building C, Unit 1, Section 06\nAc,
ra! fl NCD, PNG MOROBE, PNG Mt Hagen, WHP, PNG\nPhone: (675) 313 9800
Phone: (675) 472 5488 Phone: (675) 7528 7200\nHOEODISos Phone: (675)
72321300 Phone: (675) 7054 4494 Phone: (675) 7590 5096\nBUSINESS
SUPERSTORE Seles@theodist:com.pa: a saleslae@theodist. ore Sa ee eee
ae\nGST REG NO 377 TIN NO 500000599\nStatement For:\nNATIONAL
SUPERANNUATION FUND Statement Date: 29/02/2024\nLIMITED Account:
NASFUND\nPO BOX 5791\nBOROKO\nNATIONAL CAPITAL DISTRICT STATEMENT\nPAPUA
NEW GUINEA\nPh: 325 9522\nDate Doc # Reference Type Amount Running
Balance\n30-JUN-2023 | 3375151 (CSL | 0001937 IN 900.00
900.00\n25-JAN-2024 | 3537235 \xe2\x80\x9chard PF007199 IN 1,119.99
2,019.99\n19-JAN-2024 | 3542287 Yt PF007205 IN 749.99
2,769.98\n19-JAN-2024 | 3543104 Wephth PF007204 IN 4,949.99
7,719.97\n19-JAN-2024 | 3543106 J Real PF007203 IN 8,959.99
16,679.96\n19-JAN-2024 | 3544420 Vv bop PF007207 IN 1,707.74
18,387.70\n31-JAN-2024 | 3558149 \xc2\xab\xc2\xa9 fo PF007237 IN 1,094.82
19,482.52\n15-FEB-2024 | 3567378 J Mba. PF007307 IN 3,440.01
22,922.53\n01-FEB-2024 | 3570011 V Cept PF007237 IN 375.00
23,297.53\n15-FEB-2024 | 3570861 ve PF007322 IN 5,454.25
28,751.78\n29-FEB-2024 | 3571309 v PF007333 IN 19,069.50
47,821.28\n09-FEB-2024 | 3573944 \xe2\x80\x9cRepl PF007289 IN 69.00
47,890.28\n15-FEB-2024 | 3582517 J Rept PFO07317 IN 443.69
48,333.97\n29-FEB-2024 | 3583878 Vv PF007333 IN 34,004.99
82,338.96\n15-FEB-2024 | 3584563 j/ fa PF007324 IN 1,290.01
83,628.97\n29-NOV-2022 | 60067438 PO# PF006021 IN 21.86
83,650.83\n21-FEB-2024 | 80599957 Sah PFO07315 IN 890.00
84,540.83\n31-JAN-2024 | 3558149AA\\/ Lapdh PF007237 IN 773.81
85,314.64\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\nAccount Name: THEODIST LIMITED\nBank Name: | BANK OF SOUTH
PACIFIC | KINA BANK WESTPAC\nBSB Number: 088-968 028-111 038-007\nAccount
Number: 1000583563 60024605 6000823911\nBranch Name: WAIGANI DRIVE | PORT
MORESBY WAIGANI\nSwift Code: BOSPPGPM KINIPGPGXXX WPACPGPMXXX\n\nPlease
email payment advice to [email protected]\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? Port Moresby Lae\njg i | P.O.BOX
1618, BOROKO _\xe2\x80\x94P.O.BOX 2507, LAE REMITTANCE ADVICE\nil NCD, PNG
MOROBE, PNG\nDOES Phone: (675) 3139800 Phone: (675) 472 5488\nPhone: (675)
72321300 Phone: (675) 7054 4494 iod A Total Bal\nBUSINESS SUPERSTORE
[email protected] [email protected] SIE igaihial rae ooun eee
ae\n: . : 29/02/2024 NASFUND 85,314.64\nPlease detach this Remittance
Advice and E\nsend with your payment.\nPage 1 of 1\n\nPrinted on 5/03/2024
11:54:13 AM Visit our website: www.theodist.com\n\x0c'
pipeline_tag: text-classification
inference: true
model-index:
- name: SetFit with BAAI/bge-small-en-v1.5
results:
- task:
type: text-classification
name: Text Classification
dataset:
name: Unknown
type: unknown
split: test
metrics:
- type: accuracy
value: 1
name: Accuracy
SetFit with BAAI/bge-small-en-v1.5
This is a SetFit model that can be used for Text Classification. This SetFit model uses BAAI/bge-small-en-v1.5 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:
- Fine-tuning a Sentence Transformer with contrastive learning.
- Training a classification head with features from the fine-tuned Sentence Transformer.
Model Details
Model Description
- Model Type: SetFit
- Sentence Transformer body: BAAI/bge-small-en-v1.5
- Classification head: a LogisticRegression instance
- Maximum Sequence Length: 512 tokens
- Number of Classes: 4 classes
Model Sources
- Repository: SetFit on GitHub
- Paper: Efficient Few-Shot Learning Without Prompts
- Blogpost: SetFit: Efficient Few-Shot Learning Without Prompts
Model Labels
Label | Examples |
---|---|
1 |
|
3 |
|
0 |
|
2 |
|
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("Gopal2002/NASFUND_MODEL")
# Run inference
preds = model("b'nasfund \\& National Superannuation fund Ltd\n\n \n\nP.O. Box 5791 Boroko PNG\nTelephone: (675) 313 1813 PURCHASE ORDER\nEmail:\nSupplier Details:- Order No: PF006716\nProperty PNG Requested by: Gareth Kobua\nP.O.Box 1067 Contact No:\nPapua New Guinea\nDate Issued: 25-Jul-2023\nSupplier No: 00469\nDelivery Date: 25-Jul-2023\nPage: 1 of 1\nAttention :\nDeliver To: Invoice To:\nNational Superannuation fund Ltd\nBSP Haus Poreporena Freeway\nLevel 4\nDescription Qty. Unit at ee i\n1 Service Fee for the External Property 0 ONLY 0.00 30,000.00\nValuation Service for Credit Corp. Property Portfolio.\nOrder Total PGK : 30,000.00\n\nApproved By: Nathan KWARARA 25-Jul-2023\nRequisitioned By: Niasul KISOKAU 25-Jul-2023\n\nSignature\n\x0c'")
Training Details
Training Set Metrics
Training set | Min | Median | Max |
---|---|---|---|
Word count | 68 | 191.1579 | 417 |
Label | Training Sample Count |
---|---|
0 | 4 |
1 | 4 |
2 | 5 |
3 | 6 |
Training Hyperparameters
- batch_size: (32, 32)
- num_epochs: (3, 3)
- 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.1111 | 1 | 0.3014 | - |
Framework Versions
- Python: 3.10.12
- SetFit: 1.0.3
- Sentence Transformers: 2.7.0
- Transformers: 4.40.0
- PyTorch: 2.2.1+cu121
- Datasets: 2.19.0
- 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}
}