Skip to content

tasker-systems/semantic_analysis

Repository files navigation

SemanticAnalysis

SemanticAnalysis is Rutie wrapped Rust implementation of VADER Sentiment Analysis

Installation

Add this line to your application's Gemfile:

gem 'semantic_analysis'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install semantic_analysis

Usage

polarity = SemanticAnalyzer.score_polarity('I am so happy for you!!! This is Great! 💖')
expected = {
  compound: 0.9222007182386665,
  neg: 0.0,
  neu: 0.363901018922853,
  pos: 0.636098981077147
}

polarity == expected

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kind-io/semantic_analysis.

License

The gem is available as open source under the terms of the MIT License.

About

Ruby Gem wrapper for VADER semantic analysis in Rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published