{"id":21203088,"url":"https://github.com/serenasensini/striveschool-pytorch-chatbot","last_synced_at":"2026-07-12T13:31:26.373Z","repository":{"id":108082684,"uuid":"422613234","full_name":"serenasensini/StriveSchool-Pytorch-Chatbot","owner":"serenasensini","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-03T09:55:16.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-07-09T17:35:19.080Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/serenasensini.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-10-29T14:50:50.000Z","updated_at":"2021-11-03T09:55:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e26f3db-d9e2-4d3e-b97c-9f053962ab5e","html_url":"https://github.com/serenasensini/StriveSchool-Pytorch-Chatbot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/serenasensini/StriveSchool-Pytorch-Chatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenasensini%2FStriveSchool-Pytorch-Chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenasensini%2FStriveSchool-Pytorch-Chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenasensini%2FStriveSchool-Pytorch-Chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenasensini%2FStriveSchool-Pytorch-Chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serenasensini","download_url":"https://codeload.github.com/serenasensini/StriveSchool-Pytorch-Chatbot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serenasensini%2FStriveSchool-Pytorch-Chatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35393398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-12T02:00:06.386Z","response_time":87,"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":[],"created_at":"2024-11-20T20:21:07.686Z","updated_at":"2026-07-12T13:31:26.368Z","avatar_url":"https://github.com/serenasensini.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Implementation of a Contextual Chatbot in PyTorch.  \nSimple chatbot implementation with PyTorch. \n\n- The implementation should be easy to follow for beginners and provide a basic understanding of chatbots.\n- The implementation is straightforward with a Feed Forward Neural net with 2 hidden layers.\n- Customization for your own use case is super easy. Just modify `intents.json` with possible patterns and responses and re-run the training (see below for more info).\n\n## Installation\n\n### Create an environment\nWhatever you prefer (e.g. `conda` or `venv`)\n```console\nmkdir myproject\n$ cd myproject\n$ python3 -m venv venv\n```\n\n### Activate it\nMac / Linux:\n```console\n. venv/bin/activate\n```\nWindows:\n```console\nvenv\\Scripts\\activate\n```\n### Install PyTorch and dependencies\n\nFor Installation of PyTorch see [official website](https://pytorch.org/).\n\nYou also need `nltk`:\n ```console\npip install nltk\n ```\n\nIf you get an error during the first run, you also need to install `nltk.tokenize.punkt`:\nRun this once in your terminal:\n ```console\n$ python\n\u003e\u003e\u003e import nltk\n\u003e\u003e\u003e nltk.download('punkt')\n```\n\n## Usage\nRun\n```console\npython train.py\n```\nThis will dump `data.pth` file. And then run\n```console\npython chat.py\n```\n## Customize\nHave a look at [intents.json](intents.json). You can customize it according to your own use case. Just define a new `tag`, possible `patterns`, and possible `responses` for the chat bot. You have to re-run the training whenever this file is modified.\n```console\n{\n  \"intents\": [\n    {\n      \"tag\": \"greeting\",\n      \"patterns\": [\n        \"Hi\",\n        \"Hey\",\n        \"How are you\",\n        \"Is anyone there?\",\n        \"Hello\",\n        \"Good day\"\n      ],\n      \"responses\": [\n        \"Hey :-)\",\n        \"Hello, thanks for visiting\",\n        \"Hi there, what can I do for you?\",\n        \"Hi there, how can I help?\"\n      ]\n    },\n    ...\n  ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserenasensini%2Fstriveschool-pytorch-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserenasensini%2Fstriveschool-pytorch-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserenasensini%2Fstriveschool-pytorch-chatbot/lists"}