{"id":13771528,"url":"https://github.com/cocoa-ai/SentimentCoreMLDemo","last_synced_at":"2025-05-11T04:30:46.719Z","repository":{"id":215834998,"uuid":"97140906","full_name":"cocoa-ai/SentimentCoreMLDemo","owner":"cocoa-ai","description":"😃 iOS11 demo application for sentiment polarity analysis.","archived":false,"fork":false,"pushed_at":"2018-10-07T18:53:06.000Z","size":1497,"stargazers_count":121,"open_issues_count":2,"forks_count":21,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-19T10:22:06.424Z","etag":null,"topics":["coreml","coreml-models","ios","machine-learning","nlp","sentiment-analysis","sentiment-polarity","swift","swift4"],"latest_commit_sha":null,"homepage":"https://github.com/cocoa-ai","language":"Swift","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/cocoa-ai.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}},"created_at":"2017-07-13T15:55:00.000Z","updated_at":"2025-04-05T08:56:19.000Z","dependencies_parsed_at":"2024-02-09T08:06:41.879Z","dependency_job_id":null,"html_url":"https://github.com/cocoa-ai/SentimentCoreMLDemo","commit_stats":null,"previous_names":["cocoa-ai/sentimentcoremldemo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-ai%2FSentimentCoreMLDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-ai%2FSentimentCoreMLDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-ai%2FSentimentCoreMLDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cocoa-ai%2FSentimentCoreMLDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cocoa-ai","download_url":"https://codeload.github.com/cocoa-ai/SentimentCoreMLDemo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"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":["coreml","coreml-models","ios","machine-learning","nlp","sentiment-analysis","sentiment-polarity","swift","swift4"],"created_at":"2024-08-03T17:00:52.418Z","updated_at":"2025-05-11T04:30:45.678Z","avatar_url":"https://github.com/cocoa-ai.png","language":"Swift","funding_links":[],"categories":["Models"],"sub_categories":["SentimentPolarity"],"readme":"# Sentiment Polarity CoreML Demo\n\nA Demo application using `CoreML` framework for sentiment polarity analysis.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://github.com/cocoa-ai/SentimentCoreMLDemo/blob/master/Screenshot.png\" alt=\"SentimentCoreMLDemo\" width=\"300\" height=\"533\" /\u003e\n\u003c/div\u003e\n\n## Model\n\n[CoreML model](https://github.com/cocoa-ai/SentimentCoreMLDemo/blob/master/SentimentPolarity/Resources/SentimentPolarity.mlmodel)\nwas converted from [Scikit-learn Pipeline](http://scikit-learn.org/stable/modules/generated/sklearn.pipeline.Pipeline.html)\nusing [coremltools](https://pypi.python.org/pypi/coremltools) python package.\n\nThe model is based on [LinearSVC](http://scikit-learn.org/stable/modules/generated/sklearn.svm.LinearSVC.html) classifier and is able to distinguish between\npositive and negative sentences with **best CV score = 0.801013024602**. It was\ntrained using [Epinions.com](http://epinions.com) dataset with reviews of\nproducts and services. Accuracy can be improved by using\n[TfidfVectorizer](http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.TfidfVectorizer.html) for feature extraction, but it's not supported by [coremltools](https://pypi.python.org/pypi/coremltools)\nat the moment.\n\n## Requirements\n\n- Xcode 9\n- iOS 11\n\n## Installation\n\n```sh\ngit clone https://github.com/cocoa-ai/SentimentCoreMLDemo.git\ncd SentimentCoreMLDemo\nopen SentimentPolarity.xcodeproj/\n```\n\nBuild the project and run it on a simulator or a device with iOS 11.\n\n## Conversion\n\n```sh\ncd Convert\npython sentiment.py\n```\n\n## Author\n\nVadym Markov, markov.vadym@gmail.com\n\n## Credits\n\n- Dataset with [Epinions.com](http://epinions.com) reviews was taken from\n[HW3: Sentiment Analysis ](http://boston.lti.cs.cmu.edu/classes/95-865-K/HW/HW3/)\n\n## References\n- [scikit-learn](http://scikit-learn.org/stable/)\n- [Apple Machine Learning](https://developer.apple.com/machine-learning/)\n- [CoreML Framework](https://developer.apple.com/documentation/coreml)\n- [coremltools](https://pypi.python.org/pypi/coremltools)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocoa-ai%2FSentimentCoreMLDemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcocoa-ai%2FSentimentCoreMLDemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcocoa-ai%2FSentimentCoreMLDemo/lists"}