Coder Social home page Coder Social logo

minimal-sentiment-analysis's Introduction

Minimal-sentiment-analysis

Minimal .NET 6 API project that performs sentiment analysis via a WEBAPI in less than 40 lines of code!

What is this?

This project demostrates how to train and consume a ML.NET Binary Classification ML model using less than 40 lines of code thanks to .NET 6 minimal APIs.

Getting started

git clone https://github.com/jusso-dev/Minimal-sentiment-analysis 

cd Minimal-sentiment-analysis

dotnet run Minimal-sentiment-analysis

Model location

When the solution is built, the Minimal_sentiment_analysis_Consumer project will copy the "Minimal-sentiment-analysis.zip" outputted file to the Minimal-sentiment-analysis bin folder. This can be changed in /Minimal_sentiment_analysis_Consumer/Minimal-sentiment-analysis.consumption.cs

Training data

The root of the project contains the training data "IMDB Dataset.csv" which is a Kaggle IMDB movie review dataset - credit - https://www.kaggle.com/lakshmi25npathi/imdb-dataset-of-50k-movie-reviews/version/1

Training on more/different data

Simply open Visual Studio 2019 with the ML.NET extension installed, open the Minimal-sentiment-analysis.mbconfig under the "Minimal_sentiment_analysis_Consumer" project by double-clicking, follow the prompts for a simple classification task, update location of training file relevant to your machine, and run!

minimal-sentiment-analysis's People

Contributors

jusso-dev avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.