Giter Club home page Giter Club logo

sentimentscore's Introduction

sentimentscore - Sentiment Analysis with GNL API

Instructions on how to use the script that extracts keywords and key phrases from a website using the Google Cloud Natural Language API:

First, you will need to have a Google Cloud account and create a project.

  1. Go to the Google Cloud Console and enable the Natural Language API for your project.

  2. Create credentials for your project, such as an API key or a service account. You will need these credentials to authenticate with the API.

  3. Install the Google Cloud SDK on your computer, which will allow you to interact with the API using the command line.

  4. Once you have the SDK set up, you can use the following command to set the credentials for your project:

gcloud auth application-default login

  1. Install the google-cloud-language python library by running this command in your terminal:

pip install google-cloud-language

  1. Replace https://www.example.com/posts with the url of the website you want to extract keywords and key phrases from.

  2. Run the script by executing the command python your_file_name.py

  3. The script will return a list of keywords sorted by their salience scores and a list of key phrases sorted by their confidence scores.

Notes

Please note that you will need to have a valid internet connection to access the Google Cloud Natural Language API. Also, you should check the usage limits and pricing for the API to avoid any unexpected charges.

sentimentscore's People

Contributors

jameschrisa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.