Skip to content

Navigation Menu

Sign in
Appearance settings

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

Appearance settings
This repository was archived by the owner on Dec 3, 2022. It is now read-only.

ajdurancr/sentiment-engine

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x2ntiment-engine

A text analyzer to tell the sentiment in a given text

Getting started

git clone https://github.com/ajdurancr/x2ntiment-engine.git
cd x2ntiment-engine
npm install
npm run start

Then open http://localhost:3000/graphiql

A full example of the x2ntimentAnalysis query is:

{
  x2ntimentAnalysis {
    sentiment
    alpha
    kCategories
    text
    sentimentDetails {
      pos
      neg
    }
    occurrences {
      word
      occur
    }
    expectedFrequencyDistribution {
      pos {
        word
        freq
      }
      neg {
        word
        freq
      }
    }
    observedFrequencyDistribution {
      pos {
        word
        freq
      }
      neg {
        word
        freq
      }
    }
  }
}

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.