{"id":21522489,"url":"https://github.com/teddyoweh/sentiment-analysis-api","last_synced_at":"2025-04-09T22:32:31.749Z","repository":{"id":37026466,"uuid":"476957553","full_name":"teddyoweh/Sentiment-Analysis-API","owner":"teddyoweh","description":"The Sentiment Analysis Api was created using python flask module,it allows users to parse a text or sentence throught the (?text) arguement, then view the sentiment analysis of that sentence. It can be implementable into a web application.","archived":false,"fork":false,"pushed_at":"2022-06-22T03:26:28.000Z","size":274,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T00:26:22.441Z","etag":null,"topics":["api","data-science","flask","machine-learning","nlp-machine-learning","php","python","sentiment-analysis"],"latest_commit_sha":null,"homepage":"https://sentiment-analytics-api.herokuapp.com/?text=Im%20a%20developer","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teddyoweh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.MD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-02T05:33:21.000Z","updated_at":"2023-08-29T21:16:00.000Z","dependencies_parsed_at":"2022-08-24T16:02:14.252Z","dependency_job_id":null,"html_url":"https://github.com/teddyoweh/Sentiment-Analysis-API","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/teddyoweh%2FSentiment-Analysis-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddyoweh%2FSentiment-Analysis-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddyoweh%2FSentiment-Analysis-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddyoweh%2FSentiment-Analysis-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teddyoweh","download_url":"https://codeload.github.com/teddyoweh/Sentiment-Analysis-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123811,"owners_count":21051537,"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":["api","data-science","flask","machine-learning","nlp-machine-learning","php","python","sentiment-analysis"],"created_at":"2024-11-24T01:10:42.633Z","updated_at":"2025-04-09T22:32:31.723Z","avatar_url":"https://github.com/teddyoweh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sentiment Analysis Api\n\n**A Flask Sentiment Analysis API, with visual implementation**\n\nThe Sentiment Analysis Api was created using python flask module,it allows users to parse a text or sentence throught the (?text) arguement, then view the sentiment analysis of that sentence. It can be implementable into a web application.\n\n* **Text** -The sentence to be analyzed.\n* **Sentiment** -Possible outputs include,[ Positive, Neutral or Negative]\n* **Sentiment Level** -Possible outputs include,[ P, P+, P++, NEU,  N, N+, N++]\n* **Polarity** -Range [-1,1]\n* **Subjectivity** -Range [-1,1]\n\n\n Sample Output-{\"Polarity\":0.5,\"Sentiment\":\"Positive\",\"Sentiment Level\":\"P+\",\"Subjectivity\":0.6,\"Text\":\"I love to code\"}\n \n## Requirements\n\nPython 3.8.5+, pipenv, Textblook, PHP\n\n## Installation\n\nFirst, clone this repository.\n\n    $ git clone https://github.com/teddyoweh/Sentiment-Analysis-API\n    $ cd Sentiment-Analysis-API\n\nAfter, install all necessary to run:\n\n    $ sudo apt install php\n    $ pipenv install\n\n\n## Implementation\nRun the application:\n\n\t$ pipenv run python run.py\n\nTo the api output, access this url in your browser: \n\n\thttp://localhost:5000\n\n \nTo see your see implemenation of the Sentiment Analysis API:\n\n    $ php -S localhost:8000\n\n\nThen access this url in your browser: \n\n    http://localhost:8000\n\n## API Output\n![P++](images/api.png)\n\n\n## API Implementation\n\n### Postive Sentiment\n![P++](images/p++.png)\n\n### Neurtal Sentiment\n![P++](images/neu.png)\n\n### Negative Sentiment\n![P++](images/n++.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddyoweh%2Fsentiment-analysis-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteddyoweh%2Fsentiment-analysis-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddyoweh%2Fsentiment-analysis-api/lists"}