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:
Then you can load this model and run inference.
1from setfit import SetFitModel
2
3# Download from the 🤗 Hub
4model = SetFitModel.from_pretrained("Gopal2002/setfit_finetune_6class")
5# Run inference
6preds = model("<s_cord-v2><s_menu><s_nm> SERVICE BILL</s_nm><s_num> Vendur JAIDURGA CONSTRUCTION (J123)</s_nm><s_num> Receip/GSTING</s_num><s_price> Receipt Date PO No. Incentre & Penalty</s_nm><s_num> WG Value</s_nm><s_num> P/MR/S/V2021</s_num><s_unitprice> 24397.36</s_unitprice><s_cnt> 10.00</s_cnt><s_price> 41032.0</s_price><sep/><s_nm> 18H-RVET-I/20</s_nm><s_num> 28 DEC-2020</s_nm><s_num> 18H</s_num><s_price> 41932.00</s_price><sep/><s_nm> Forwarded By BKBAL</s_nm><s_num> 10/012002.0021.0021.0021.0021.0021.0021.0021.0021.0021.0021<sep/><s_nm> S.K D.E.00</s_nm><s_num> 11/01.21</s_num><s_price> 13/01.00</s_price><sep/><s_nm> AKOWEEDI A&M.0014.0014</s_subtotal_price><s_discount_price> 13/01).00</s_discount_price><s_service_price> 13/01).00</s_service_price><s_tax_price> 16/612.0)</s_tax_price></s_sub_total><s_total><s_total_price> 41932.00</s_total_price><s_cashprice> 41932.00</s_cashprice><s_changeprice> 40</s_changeprice><s_creditcardprice> 41932.00</s_creditcardprice></s_total>")
1@article{https://doi.org/10.48550/arxiv.2209.11055,
2 doi = {10.48550/ARXIV.2209.11055},
3 url = {https://arxiv.org/abs/2209.11055},
4 author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
5 keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
6 title = {Efficient Few-Shot Learning Without Prompts},
7 publisher = {arXiv},
8 year = {2022},
9 copyright = {Creative Commons Attribution 4.0 International}
10}