Skip to content

A convenient way to compare text entity data between content

Notifications You must be signed in to change notification settings

AJBenjumea/text-entity-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Entity Analysis

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

Alt Text

Clone

Clone this repo to your local machine using https://github.com/AJBenjumea/text-entity-analysis.git

Setup

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.

Configuration

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

Usage

For local use run the following npm scripts in seperate terminals

npm start
npm build-dev

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

A convenient way to compare text entity data between content

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages