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

Latest commit

 

History

History
54 lines (49 loc) · 786 Bytes

README.md

File metadata and controls

54 lines (49 loc) · 786 Bytes

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
      }
    }
  }
}