Skip to content

This project is a demo on using CoreML framework for sentiment analysis of text. .mlmodel was developed from Scikit-learn Pipeline using coremltools python package. More details here : https://developer.apple.com/documentation/coreml/converting_trained_models_to_core_ml

Notifications You must be signed in to change notification settings

VamshiIITBHU14/VKSentimentAnalysis

Repository files navigation

This project is a demo on using CoreML framework for sentiment analysis of text. .mlmodel was developed from Scikit-learn Pipeline using coremltools python package.

You can also use it in the form of plug and play. It is very simple and real quick.

Steps:

  1. Drag and drop SentimentClassificationService.Swift and VKSentimentAnalysis.mlmodel into your project.

  2. sentimentLabel.text = SentimentClassificationService.instance.prediction(from: "I love CoreML")?.emoji.

We are done.

If you would like to have a glimpse of the whole code and VKSentimentAnalysis.mlmodel description, you can download the project and run the sample project.

ezgif com-optimize

Bonus:

This project covers how to use 3D Touch to implement peek and pop using Custom Presentation Controllers. It also shows how to add a Today Extension to the project.

About

This project is a demo on using CoreML framework for sentiment analysis of text. .mlmodel was developed from Scikit-learn Pipeline using coremltools python package. More details here : https://developer.apple.com/documentation/coreml/converting_trained_models_to_core_ml

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published