{"id":15103617,"url":"https://github.com/pedcapa/nlpower","last_synced_at":"2026-03-05T22:06:35.561Z","repository":{"id":251094460,"uuid":"801293838","full_name":"pedcapa/nlpower","owner":"pedcapa","description":"FastAPI-based service designed to provide real-time text analysis. It leverages some Natural Language Processing (NLP) libraries to offer functionalities such as sentiment analysis, keyword extraction, and text summarization.","archived":false,"fork":false,"pushed_at":"2024-08-20T19:48:56.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-03T11:58:18.568Z","etag":null,"topics":["fastapi","nlp","nltk","spacy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pedcapa.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":"2024-05-16T00:36:21.000Z","updated_at":"2024-08-20T19:48:52.000Z","dependencies_parsed_at":"2024-09-20T15:32:33.754Z","dependency_job_id":null,"html_url":"https://github.com/pedcapa/nlpower","commit_stats":{"total_commits":20,"total_committers":3,"mean_commits":6.666666666666667,"dds":0.25,"last_synced_commit":"797f23346c809c2ba03eb72a6f78946b99a07053"},"previous_names":["pedcapa/nlpower"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pedcapa/nlpower","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Fnlpower","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Fnlpower/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Fnlpower/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Fnlpower/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pedcapa","download_url":"https://codeload.github.com/pedcapa/nlpower/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pedcapa%2Fnlpower/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30152073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T21:15:50.531Z","status":"ssl_error","status_checked_at":"2026-03-05T21:15:11.173Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["fastapi","nlp","nltk","spacy"],"created_at":"2024-09-25T19:40:51.794Z","updated_at":"2026-03-05T22:06:35.218Z","avatar_url":"https://github.com/pedcapa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"NLPower\n\n## Overview\nNLPower is a FastAPI-based service designed to provide real-time text analysis. It leverages some Natural Language Processing (NLP) libraries to offer functionalities such as sentiment analysis, keyword extraction, and text summarization.\n\nThis API can be used as a standalone service or integrated into front-end applications, data analytics tools, or any system that requires automated text understanding.\n\n## Features\n- **Sentiment Analysis**: Determine if the sentiment of the input text is positive or negative.\n- **Keyword Extraction**: Extract significant keywords from the provided text.\n- **Text Summarization**: Generate a concise summary of the given text.\n\n## Technologies\n- FastAPI\n- spacy\n- nltk\n\n## Getting Started\n\n### Prerequisites\nMake sure you have Python 3.8+ installed on your machine. It is also recommended to use a virtual environment for Python projects.\n\n### Installation\n\n1. Clone the repository\n   ```bash\n   git clone https://github.com/yourusername/nlpower.git\n   cd nlpower\n   ```\n\n2. Install required Python packages\n    ```bash\n   pip3 install -r requirements.txt\n    ```\n\n3. Download necessary NLP models\n   ```bash\n   python3 -m spacy download en_core_web_sm\n   python3 -m nltk.downloader popular\n   ```\n   \n### Running the API\n1. Start the FastAPI server\n   ```bash\n   uvicorn app.main:app --reload\n   ```\nThe API should now be running on `http://localhost:8000`. You can access the documentation at `http://localhost:8000/docs`.\n\n## Usage\nHere's an example of how to use the API via `curl`:\n\n-  Sentiment Analysis\n```bash\ncurl -X 'POST' \\\n  'http://localhost:8000/analyze/sentiment' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"text\": \"I love using FastAPI!\"}'\n```\n   **Response**\n   ```json\n   {\n     \"sentiment\": \"Positive\"\n   }\n   ```\n\n- Keyword Extraction\n```bash\ncurl -X 'POST' \\\n  'http://localhost:8000/analyze/keywords' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"text\": \"FastAPI is a modern, fast (high-performance), web framework for building APIs.\"}'\n```\n   **Response**\n   ```json\n   {\n     \"result\": \"FastAPI, modern, fast, web, framework, APIs\"\n   }\n   ```\n\n- Text Summarization\n```bash\ncurl -X 'POST' \\\n  'http://localhost:8000/analyze/summary' \\\n  -H 'accept: application/json' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"text\": \"FastAPI is a great tool. It helps you build APIs really fast.\"}'\n```\n**Response**\n```json\n{\n   \"result\": \"FastAPI is a great tool.\"\n}\n```\n\n## Contribution\nContributions are welcome and appreciated. You can contribute in various ways such as submitting issues in our repo and creating pull requests for improvements to documentation or code.\n\n## License\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](https://github.com/pedcapa/nlpower/blob/main/LICENSE) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedcapa%2Fnlpower","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpedcapa%2Fnlpower","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpedcapa%2Fnlpower/lists"}