{"id":25729467,"url":"https://github.com/rohancyberops/javachatbotnlp","last_synced_at":"2025-06-11T01:04:22.682Z","repository":{"id":278718666,"uuid":"936548850","full_name":"RohanCyberOps/JavaChatbotNLP","owner":"RohanCyberOps","description":"AI chatbot built in Java using Natural Language Processing (NLP) techniques with Apache OpenNLP and Spring Boot. The chatbot can tokenize user input, detect basic sentences, and respond based on predefined logic.","archived":false,"fork":false,"pushed_at":"2025-02-21T09:29:43.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-21T10:32:30.235Z","etag":null,"topics":["apacheopennlp","chatbot","java","natural-language-processing","nlp","springboot"],"latest_commit_sha":null,"homepage":"","language":"Java","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/RohanCyberOps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-21T09:22:36.000Z","updated_at":"2025-02-21T09:32:03.000Z","dependencies_parsed_at":"2025-02-21T10:32:46.489Z","dependency_job_id":"011cbf79-4c9c-4106-989d-0d796c61769f","html_url":"https://github.com/RohanCyberOps/JavaChatbotNLP","commit_stats":null,"previous_names":["rohancyberops/javachatbotnlp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FJavaChatbotNLP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FJavaChatbotNLP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FJavaChatbotNLP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RohanCyberOps%2FJavaChatbotNLP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RohanCyberOps","download_url":"https://codeload.github.com/RohanCyberOps/JavaChatbotNLP/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240774352,"owners_count":19855384,"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":["apacheopennlp","chatbot","java","natural-language-processing","nlp","springboot"],"created_at":"2025-02-26T01:25:58.132Z","updated_at":"2025-02-26T01:26:00.292Z","avatar_url":"https://github.com/RohanCyberOps.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java NLP Chatbot\n\n## Overview\nThis project is a simple AI chatbot built in Java using Natural Language Processing (NLP) techniques with **Apache OpenNLP** and **Spring Boot**. The chatbot can tokenize user input, detect basic sentences, and respond based on predefined logic.\n\n## Features\n- Tokenizes user input using Apache OpenNLP\n- Basic chatbot logic to handle conversations\n- REST API endpoint using Spring Boot\n- Dependency management with Maven\n\n## Technologies Used\n- Java (JDK 8 or higher)\n- Apache OpenNLP (for NLP processing)\n- Spring Boot (for REST API)\n- Maven (for dependency management)\n\n## Project Structure\n```\nJavachatNLP/\n│── src/\n│   ├── main/\n│   │   ├── java/\n│   │   │   ├── com/chatbot/\n│   │   │   │   ├── SimpleChatbot.java\n│   │   │   │   ├── ChatbotController.java\n│   │   ├── resources/\n│── pom.xml\n```\n\n## Installation \u0026 Setup\n### 1. Clone the Repository\n```sh\ngit clone https://github.com/RohanCyberOps/JavachatNLP.git\ncd JavachatNLP\n```\n\n### 2. Build the Project with Maven\n```sh\nmvn clean install\n```\n\n### 3. Run the Chatbot\nTo start the chatbot in command-line mode:\n```sh\njava -cp target/JavaNLPChatbot-1.0-SNAPSHOT.jar com.chatbot.SimpleChatbot\n```\n\nTo run the Spring Boot API:\n```sh\nmvn spring-boot:run\n```\n\n## API Usage\n### Endpoint: `/chatbot/respond`\n#### Request (POST):\n```sh\ncurl -X POST \"http://localhost:8080/chatbot/respond\" -d \"message=Hello!\"\n```\n#### Response:\n```json\n{\n  \"response\": \"Chatbot: You said: Hello!\"\n}\n```\n\n## Future Enhancements\n- Implement intent recognition with machine learning\n- Enhance response handling with a knowledge base\n- Integrate with external APIs (e.g., weather, news, etc.)\n\n## License\nThis project is open-source and available under the MIT License.\n\n---\nFor contributions, feel free to submit a pull request! 🚀\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Fjavachatbotnlp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohancyberops%2Fjavachatbotnlp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohancyberops%2Fjavachatbotnlp/lists"}