Build Custom Text Classification Model with Only Few Sample | Spacy and Setfit @DataScienceGarage
Build Custom Text Classification Model with Only Few Sample | Spacy and Setfit  @DataScienceGarage
Uploaded July 2023 | Updated September 2026, 2 weeks ago
You can train state-of-the-art text classification models with only a few samples straight in SpaCy now. Together with Spacy SetFit which is a new few-shot text classification library you can do that very easily just by following steps in this hands-on tutorial.

The combination of Spacy and Setfit allows you to add your small training set (few text samples) that will be used for fine tune the base Spacy model. For example, as in this tutorial, the new text will be classified to two classes: inlier and outlier.

As a base NLP model, we use Universal English Language model (small version), which is named as en_core_web_sm. You can read more on this here: spacy.io/models/en

Also, we use sentence-transformers model released by HuggingFace: paraphrase-MiniLM-L3-v2, which maps our text into tokens. You can find more information on this from here: huggingface.co/sentence-transformers/paraphrase-MiniLM-L3-v2

The Github repository with the full Python code for the tutorial is available here: github.com/vb100/spacy_text_classificator

Subscribe the @DataScienceGarage channel to get more high quality tutorials, reviews and explainable videos!

- - -
If you want to change you career and became advanced data analytic or data scientist, check this awesome Turing College!
Meet industry leaders and take your role in the job market with heavy baggage of you skills!
Visit: turingcollege.org/DataScienceGarage !

---
The content of the tutorial:
0:00 - Intro
0:27 - Install Spacy and Spacy Setfit
1:00 - Install en_core_web_sm
1:33 - Setup a Python file to implement text classification
6:16 - Test the fine-tuned NLP model on test data
7:41 - Bonus: Github repository and the best data science school

#nlp #python #setfit #spacy #textclassification
Build Custom Text Classification Model with Only Few Sample | Spacy and SetfitArcMap - statistikos departamento GIS duomenų atvaizdavimasPassing of the planeGet Started with Rust in Python with this Great Book! | ReviewHow to install Kubernetes on Ubuntu 18.04  | 9 STEPS | explainedGet Started with LangChain LLM Models  - Step by Step with PythonEngineering MLOps - Book Review | 2021 - Get Started with MLOps and MLOps AI Engineering NowYour first AWS Lambda function ever | Very simple exampleDetect Rectangles and Blur In Images with CV2 Computer Vision. Case of Food Packages. DEMO.Download Images as JPG from URL List with Python. EXPLAINEDMotion Detector and Motion Graph in HTML with PythonHow to use Youtube API to extract YT channel data with Python (Step by step)
Data Science Garage |

Build Custom Text Classification Model with Only Few Sample | Spacy and Setfit

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER