{"id":15521394,"url":"https://github.com/julesbelveze/nhelper","last_synced_at":"2025-08-24T15:13:41.609Z","repository":{"id":37816855,"uuid":"481913287","full_name":"JulesBelveze/nhelper","owner":"JulesBelveze","description":"🧪 Behavioral testing of NLP models 🧪","archived":false,"fork":false,"pushed_at":"2023-04-30T19:55:12.000Z","size":380,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T05:36:24.489Z","etag":null,"topics":["behavioral","deep-learning","machine-learning","natural-language-processing","nlp","testing"],"latest_commit_sha":null,"homepage":"","language":"Python","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/JulesBelveze.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,"governance":null}},"created_at":"2022-04-15T09:52:22.000Z","updated_at":"2024-02-07T10:12:47.000Z","dependencies_parsed_at":"2023-11-10T13:08:35.530Z","dependency_job_id":"1ed15868-caa9-4e22-89e0-01020a7763d6","html_url":"https://github.com/JulesBelveze/nhelper","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":0.4285714285714286,"last_synced_commit":"b1cc08f44698d721ed976081c4afd25d9e415a13"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulesBelveze%2Fnhelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulesBelveze%2Fnhelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulesBelveze%2Fnhelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulesBelveze%2Fnhelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JulesBelveze","download_url":"https://codeload.github.com/JulesBelveze/nhelper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250372067,"owners_count":21419712,"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","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":["behavioral","deep-learning","machine-learning","natural-language-processing","nlp","testing"],"created_at":"2024-10-02T10:34:24.576Z","updated_at":"2025-04-23T04:33:00.966Z","avatar_url":"https://github.com/JulesBelveze.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"figures/NheLPer.png\" width=\"50%\" align=\"right\"/\u003e\n\n# NheLPer\n\n**NheLPer** is Python package designed to ease *behavioral testing* of Natural Language Processing models to identify\npossible capability failures.\n\n## 1. About the project\n\nBehavioral tests are intended to test a model against some input data while treating as a black box. The aim is to\nobserve the model's reaction against some perturbations that might occur once the model is productionized. For a more\ndetailed explanation on behavioral testing of NLP models I encourage you to read the insightful\npaper: [Beyond Accuracy: Behavioral Testing of NLP models with CheckList](https://arxiv.org/abs/2005.04118)\n\n**NLPtest** provides helper objects for three different aspects:\n\n- easily generate text samples\n- test some specific behaviors of your model\n- aggregate the tests outcomes of your model\n\n## 2. Getting started\n\n### 2.1. Installation\n\nYou can directly install **NheLPer** using [pypi](https://pypi.org/project/nhelper/):\n\n```\npip3 install nhelper\n```\n\n### 2.2. Usage\n\nTo help you get the hang of the library we provide three different Notebooks to the user, accessible from\nthe `examples/` folder:\n\n1. `Samples_generation.ipynb`: shows you how to easily generate texts using the `Generator` object.\n2. `Please_Behave.ipynb`: getting familiar with the `Behavior` object.\n3. `End2End_tests.ipynb`: how to run tests and get an overview of your model behavior.\n\n# References\n\nBelow, you can find resources that were used for the creation of **NLPtest** as well as relevant resources about\nbehavioral testing.\n\n* [MadeWithML](https://madewithml.com/courses/mlops/testing/#behavioral-testing)\n* [CheckList](https://github.com/marcotcr/checklist)\n* [Beyond Accuracy: Behavioral Testing of NLP models with CheckList](https://arxiv.org/abs/2005.04118)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulesbelveze%2Fnhelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulesbelveze%2Fnhelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulesbelveze%2Fnhelper/lists"}