Text Entity Analysis is a web tool that provides a convenient way to compare entity metrics between webpage content.
- Scrapes user provided pages and uses Google's Natual Language API to retrieve entity data
- Side by side entity cards comparison ordered by salience
- Scatter plot chart comparing entity mentions vs salience
- Bar graph of entity type totals
- Pie chart with total entity mentions
Clone this repo to your local machine using https://github.com/AJBenjumea/text-entity-analysis.git
Install npm packages
npm install
Create a Natural Langage API key
If you don't already have one, you'll need to create a project in Google Cloud Console and enable the Cloud Natural Language API for your project. You can then creat an API key.
Create a .env file and set the following variables:
- API_KEY: Set this to your Natural Language API key
- PORT_A: Set this to the port you want server to run on
- API_PATH: Can be local path and server port
For local use run the following npm scripts in seperate terminals
npm start
npm build-dev
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.