{"id":14065018,"url":"https://github.com/NeuralNine/neuralintents","last_synced_at":"2025-07-29T19:33:59.092Z","repository":{"id":44439919,"uuid":"346076088","full_name":"NeuralNine/neuralintents","owner":"NeuralNine","description":"A simple interface for working with intents and chatbots.","archived":false,"fork":false,"pushed_at":"2024-11-30T15:03:40.000Z","size":14,"stargazers_count":254,"open_issues_count":32,"forks_count":137,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-30T16:19:09.587Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/NeuralNine.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}},"created_at":"2021-03-09T16:45:55.000Z","updated_at":"2024-11-26T01:11:02.000Z","dependencies_parsed_at":"2024-08-13T07:08:02.158Z","dependency_job_id":"0c2b1dd5-b340-4b5e-a5a1-35a248669472","html_url":"https://github.com/NeuralNine/neuralintents","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuralNine%2Fneuralintents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuralNine%2Fneuralintents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuralNine%2Fneuralintents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NeuralNine%2Fneuralintents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NeuralNine","download_url":"https://codeload.github.com/NeuralNine/neuralintents/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046007,"owners_count":17861077,"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":[],"created_at":"2024-08-13T07:04:14.461Z","updated_at":"2024-12-04T04:30:36.816Z","avatar_url":"https://github.com/NeuralNine.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# neuralintents\r\n\r\nStill in a buggy alpha state.\r\n\r\n## Setting Up A Basic Assistant\r\n\r\n```python\r\nfrom neuralintents.assistants import BasicAssistant\r\n\r\nassistant = BasicAssistant('intents.json')\r\n\r\nassistant.fit_model(epochs=50)\r\nassistant.save_model()\r\n\r\ndone = False\r\n\r\nwhile not done:\r\n    message = input(\"Enter a message: \")\r\n    if message == \"STOP\":\r\n        done = True\r\n    else:\r\n        print(assistant.process_input(message))\r\n```\r\n\r\n## Binding Functions To Requests\r\n\r\n```python\r\nfrom neuralintents.assistants import BasicAssistant\r\n\r\n\r\nstocks = ['AAPL', 'META', 'TSLA', 'NVDA']\r\n\r\n\r\ndef print_stocks():\r\n    print(f'Stocks: {stocks}')\r\n\r\n\r\nassistant = BasicAssistant('intents.json', method_mappings={\r\n    \"stocks\": print_stocks,\r\n    \"goodbye\": lambda: exit(0)\r\n})\r\n\r\nassistant.fit_model(epochs=50)\r\nassistant.save_model()\r\n\r\ndone = False\r\n\r\nwhile not done:\r\n    message = input(\"Enter a message: \")\r\n    if message == \"STOP\":\r\n        done = True\r\n    else:\r\n        print(assistant.process_input(message))\r\n```\r\n\r\n## Sample intents.json File\r\n```json\r\n{\"intents\": [\r\n  {\"tag\": \"greeting\",\r\n    \"patterns\": [\"Hi\", \"How are you\", \"Is anyone there?\", \"Hello\", \"Good day\", \"Whats up\", \"Hey\", \"greetings\"],\r\n    \"responses\": [\"Hello!\", \"Good to see you again!\", \"Hi there, how can I help?\"],\r\n    \"context_set\": \"\"\r\n  },\r\n  {\"tag\": \"goodbye\",\r\n    \"patterns\": [\"cya\", \"See you later\", \"Goodbye\", \"I am Leaving\", \"Have a Good day\", \"bye\", \"cao\", \"see ya\"],\r\n    \"responses\": [\"Sad to see you go :(\", \"Talk to you later\", \"Goodbye!\"],\r\n    \"context_set\": \"\"\r\n  },\r\n  {\"tag\": \"programming\",\r\n    \"patterns\": [\"What is progamming?\", \"What is coding?\", \"Tell me about programming\", \"Tell me about coding\", \"What is software development?\"],\r\n    \"responses\": [\"Programming, coding or software development, means writing computer code to automate tasks.\"],\r\n    \"context_set\": \"\"\r\n  },\r\n  {\"tag\": \"resource\",\r\n    \"patterns\": [\"Where can I learn to code?\", \"Best way to learn to code\", \"How can I learn programming\", \"Good programming resources\", \"Can you recommend good coding resources?\"],\r\n    \"responses\": [\"Check out the NeuralNine YouTube channel and The Python Bible series (7 in 1).\"],\r\n    \"context_set\": \"\"\r\n  },\r\n  {\"tag\": \"stocks\",\r\n    \"patterns\": [\"What are my stocks?\", \"Which stocks do I own?\", \"Show my stock portfolio\"],\r\n    \"responses\": [\"Here are your stocks!\"],\r\n    \"context_set\": \"\"\r\n  }\r\n]\r\n}\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeuralNine%2Fneuralintents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNeuralNine%2Fneuralintents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNeuralNine%2Fneuralintents/lists"}