# ---
# 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="irEeFSG-_17e" colab_type="code" colab={}
# !pip install tensorflow-gpu

# + id="FD7q5Nkl0kvs" colab_type="code" colab={}
# !pip install deeppavlov

# + id="Jh_PW7dJ-o9x" colab_type="code" colab={}
# !python -m deeppavlov install bert_sentiment.json

# + id="eJsWV2ndHFRK" colab_type="code" colab={}
# !python -m deeppavlov install fasttext_sentiment.json

# + id="GX09UGLPEmmN" colab_type="code" colab={}
from google.colab import drive
drive.mount('/content/drive', force_remount=True)

# + id="pjFIKhli8DkZ" colab_type="code" colab={}
from deeppavlov import train_model

# + id="c73N8OMY9Tnf" colab_type="code" colab={}
model = train_model('bert_sentiment.json', download=False)

# + id="HQlht50a80DN" colab_type="code" colab={}
model = train_model('elmo_sentiment.json')

# + id="V4qLxrWdDYNk" colab_type="code" colab={}
model = train_model('fasttext_sentiment.json', download=False)

# + id="NjqmXDApDDiM" colab_type="code" colab={}
# !zip -r /content/model_bert.zip /content/model

# + id="vxPuSm7w_zoW" colab_type="code" colab={}
# !cp model_bert.zip 'drive/My Drive/Colab Notebooks'

# + id="doT7W9-0Eit8" colab_type="code" colab={}


StarcoderdataJupyterScriptsDedupFiltered