Google Cloud Platform - Natural Language Sample

This Python Flask application demonstrates App Engine Standard and the Natural Language API


Text:
{% if sentiment %}

Inputted Text:

{{text}}


Entity Detection:

{% for entity in entities %}

Name: {{ entity.name }}

Salience: {{ entity.salience }}

{% if entity.metadata['wikipedia_url'] %}

{{ entity.metadata['wikipedia_url'] }}

{% endif %}
{% endfor %}

Sentiment Analysis:

Magnitude: {{ sentiment.magnitude }}

Score: {{ sentiment.score }}


{% endif %}