Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

😃 iOS11 demo application for sentiment polarity analysis.

License

NotificationsYou must be signed in to change notification settings

cocoa-ai/SentimentCoreMLDemo

Repository files navigation

A Demo application usingCoreML framework for sentiment polarity analysis.

SentimentCoreMLDemo

Model

CoreML modelwas converted fromScikit-learn Pipelineusingcoremltools python package.

The model is based onLinearSVC classifier and is able to distinguish betweenpositive and negative sentences withbest CV score = 0.801013024602. It wastrained usingEpinions.com dataset with reviews ofproducts and services. Accuracy can be improved by usingTfidfVectorizer for feature extraction, but it's not supported bycoremltoolsat the moment.

Requirements

  • Xcode 9
  • iOS 11

Installation

git clone https://github.com/cocoa-ai/SentimentCoreMLDemo.gitcd SentimentCoreMLDemoopen SentimentPolarity.xcodeproj/

Build the project and run it on a simulator or a device with iOS 11.

Conversion

cd Convertpython sentiment.py

Author

Vadym Markov,markov.vadym@gmail.com

Credits

References


[8]ページ先頭

©2009-2025 Movatter.jp