Cloud Natural Language API + Google App Engine + Firebase Demo WebApp.
-
If you don’t already have one, create a Google Account.
-
Create a Developers Console project.
- Install (or check that you have previously installed)
- Enable Project Billing
- Enable Natural Language API
- Enable Big Query API
- Configure the
gcloud
command-line tool to use the project your Firebase project.
$ gcloud config set project <your-project-id>
- Change directory to
nl-bubble-master/
$ cd nl-bubble-master/
- Install the Python dependencies
$ pip install -t lib -r requirements.txt
- Create an App Engine App
$ gcloud app create
- Deploy the application to App Engine.
$ gcloud app deploy app.yaml
-
Update and publish security rules.
{
"rules": {
".read": "auth == null",
".write": "auth == null"
}
}
- Create empty table.
Destination Table name : bubbles.emotion
Schema Name/Type :
- message/STRING
- team/STRING
- score/FLOAT
- magnitude/FLOAT
Partitioning : None
Input your emotion.
https://<your-project-id>.appspot.com/
Access admin page to visualize positive/nagative emotions.
https://<your-project-id>.appspot.com/admin