{"id":27786132,"url":"https://github.com/thecodetraveler/sentimentanalysis","last_synced_at":"2025-08-10T06:03:19.998Z","repository":{"id":40935198,"uuid":"104096222","full_name":"TheCodeTraveler/SentimentAnalysis","owner":"TheCodeTraveler","description":"An iOS and Android app made using Xamarin.Forms that uses Azure's Sentiment Analysis API to determine the sentiment of a message","archived":false,"fork":false,"pushed_at":"2022-06-22T16:18:58.000Z","size":15691,"stargazers_count":5,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-10T06:02:03.286Z","etag":null,"topics":["azure","cognitive-services","microsoft","microsoft-cognitive-services","sentiment-analysis","xamarin","xamarin-android","xamarin-forms","xamarin-ios"],"latest_commit_sha":null,"homepage":"https://westus.dev.cognitive.microsoft.com/docs/services/TextAnalytics.V2.0/operations/56f30ceeeda5650db055a3c9/?WT.mc_id=none-XamarinBlog-bramin","language":"C#","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/TheCodeTraveler.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":"2017-09-19T15:57:01.000Z","updated_at":"2024-02-28T09:31:13.000Z","dependencies_parsed_at":"2022-09-20T17:52:02.183Z","dependency_job_id":null,"html_url":"https://github.com/TheCodeTraveler/SentimentAnalysis","commit_stats":null,"previous_names":["thecodetraveler/sentimentanalysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheCodeTraveler/SentimentAnalysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FSentimentAnalysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FSentimentAnalysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FSentimentAnalysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FSentimentAnalysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCodeTraveler","download_url":"https://codeload.github.com/TheCodeTraveler/SentimentAnalysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeTraveler%2FSentimentAnalysis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269683183,"owners_count":24458628,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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":["azure","cognitive-services","microsoft","microsoft-cognitive-services","sentiment-analysis","xamarin","xamarin-android","xamarin-forms","xamarin-ios"],"created_at":"2025-04-30T15:44:31.369Z","updated_at":"2025-08-10T06:03:19.940Z","avatar_url":"https://github.com/TheCodeTraveler.png","language":"C#","readme":"# Sentiment Analysis\n\nThis app was made in conjunction with the Microsoft Blog, [Upgrade Your App With Sentiment Analysis](https://devblogs.microsoft.com/xamarin/upgrade-your-app-with-sentiment-analysis?WT.mc_id=mobile-0000-bramin).\n\n| Happy Sentiment      | Sad Sentiment |\n|---------------------------|---------------------------\n| ![Happy Sentiment](https://user-images.githubusercontent.com/13558917/45384332-930a2a80-b5c2-11e8-93a3-120a5f574cfb.gif)|  ![Sad Sentiment](https://user-images.githubusercontent.com/13558917/45384333-93a2c100-b5c2-11e8-81d4-39cbe973164c.gif)|\n\nMicrosoft's [Cognitive Services](https://azure.microsoft.com/services/cognitive-services?WT.mc_id=mobile-0000-bramin) team have created the [Sentiment Analysis API](https://westus.dev.cognitive.microsoft.com/docs/services/TextAnalytics.V2.0/operations/56f30ceeeda5650db055a3c9/?WT.mc_id=mobile-0000-bramin) that uses machine learning to determine the sentiment of uploaded text. And the best part is, we don't need to be machine learning experts to use it.\n\nI just submit the text as a POST Request:\n\n```json\n{\n  \"documents\": [\n    {\n      \"language\": \"en\",\n      \"id\": \"251c99d7-1f89-426a-a3ad-c6fa1b34f020\",\n      \"text\": \"I hope you find time to actually get your reports done today.\"\n    }\n  ]\n}\n```\n\nAnd the API returns back its sentiment score:\n\n```json\n{\n\"sentiment\": {\n  \"documents\": [\n    {\n      \"id\": \"251c99d7-1f89-426a-a3ad-c6fa1b34f020\",\n      \"score\": 0.776355504989624\n    }\n  ]\n}\n```\n\nThe sentiment score ranges between 0 and 1.\n\nScores close to 0 indicate negative sentiment, while scores close to 1 indicate positive sentiment.\n\n## Learn More\n\n- [Upgrade Your App With Sentiment Analysis | Microsoft Blog](https://devblogs.microsoft.com/xamarin/upgrade-your-app-with-sentiment-analysis?WT.mc_id=mobile-0000-bramin)\n- [Cognitive Services](https://azure.microsoft.com/services/cognitive-services?WT.mc_id=mobile-0000-bramin)\n- [Text Analytics](https://azure.microsoft.com/services/cognitive-services/text-analytics?WT.mc_id=mobile-0000-bramin)\n- [Sentiment Analysis API](https://westus.dev.cognitive.microsoft.com/docs/services/TextAnalytics.V2.0/operations/56f30ceeeda5650db055a3c9?WT.mc_id=mobile-0000-bramin)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodetraveler%2Fsentimentanalysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodetraveler%2Fsentimentanalysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodetraveler%2Fsentimentanalysis/lists"}