{"id":21444240,"url":"https://github.com/ahmedbesbes/multi-label-sentiment-classifier","last_synced_at":"2025-09-12T11:50:09.251Z","repository":{"id":54262457,"uuid":"341650459","full_name":"ahmedbesbes/multi-label-sentiment-classifier","owner":"ahmedbesbes","description":"How to build a multi-label sentiment classifiers with Tez and PyTorch","archived":false,"fork":false,"pushed_at":"2021-02-28T18:28:53.000Z","size":624,"stargazers_count":19,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-08T13:12:36.242Z","etag":null,"topics":["bert-model","goemotions","huggingface","huggingface-transformers","multi-label-classification","nlp","nlproc","pytorch","squeezebert","tez"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmedbesbes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-23T18:26:51.000Z","updated_at":"2024-05-13T18:09:29.000Z","dependencies_parsed_at":"2022-08-13T10:20:38.227Z","dependency_job_id":null,"html_url":"https://github.com/ahmedbesbes/multi-label-sentiment-classifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmedbesbes/multi-label-sentiment-classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedbesbes%2Fmulti-label-sentiment-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedbesbes%2Fmulti-label-sentiment-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedbesbes%2Fmulti-label-sentiment-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedbesbes%2Fmulti-label-sentiment-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedbesbes","download_url":"https://codeload.github.com/ahmedbesbes/multi-label-sentiment-classifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedbesbes%2Fmulti-label-sentiment-classifier/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274807387,"owners_count":25353707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bert-model","goemotions","huggingface","huggingface-transformers","multi-label-classification","nlp","nlproc","pytorch","squeezebert","tez"],"created_at":"2024-11-23T02:16:45.494Z","updated_at":"2025-09-12T11:50:09.165Z","avatar_url":"https://github.com/ahmedbesbes.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Training a Multi-Label Emotion Classifier with Tez and PyTorch\n\nIf you're tired of rewriting the same boilerplate code of your training pipelines in PyTorch, I've found a pretty neat solution that could make your life easier. Don't worry, it's not a heavy library that'll change your way of doing things.\n\nIt's rather a lightweight wrapper that encapsulates your training logic in a single class. It's built on top of PyTorch, it's quite recent but I've tested it and I think it does what it promises so far.\n\nIt's called Tez and we'll see it today in action on a fun multi-label text classification problem. Let's jump right in.\n\n![](./images/goemotions.png)\n\n### Things that will be covered\n\n- Using the Datasets library to load and manipulate go_emotions data\n- Defining the training pipeline with Tez\n- Training a SqueezeBert lightweight model for a multi-label classification problem and reaching +0.9 AUC on validation and test data\n\n### Things that will be done next (PR are welcome)\n\n- Deploying the model\n- Crafting a small UI with React or Streamlit\n\n### Link to the trained model\n\n[Download it here](https://goemotions-with-tez.s3.eu-west-3.amazonaws.com/model.bin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedbesbes%2Fmulti-label-sentiment-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedbesbes%2Fmulti-label-sentiment-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedbesbes%2Fmulti-label-sentiment-classifier/lists"}