# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     name: python3
# ---

# + id="PCQtQXVz2lnR" colab_type="code" colab={}
from textblob import TextBlob

# + id="8Y-um8TS26vb" colab_type="code" colab={}
frase = "Python é ótimo para Machine Learning"
tb = TextBlob(frase)
tb_en = tb.translate(to='en')

# + id="SO0WSoTm3KXJ" colab_type="code" outputId="bea74843-4d05-495c-bfce-f9023b2e36a3" colab={"base_uri": "https://localhost:8080/", "height": 34}
tb_en.sentiment.polarity

# + id="1L2HbLII3lzT" colab_type="code" outputId="3dc5b2aa-ffb4-43e7-e3c0-f0d8ef95c407" colab={"base_uri": "https://localhost:8080/", "height": 34}
tb_en

# + id="4UiOGnIy31sS" colab_type="code" colab={}


StarcoderdataJupyterScriptsDedupFiltered