Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.
/ sentiment-engine Public archive

A text analyzer to tell the sentiment in a given text

Notifications You must be signed in to change notification settings

ajdurancr/sentiment-engine

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:https://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
      }
    }
  }
}