# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: tf_gpu
#     language: python
#     name: tf_gpu
# ---

# + [markdown] id="x1MC8MkgV2gW" colab_type="text"
#

# + [markdown] id="4suMUv4UKzGU" colab_type="text"
# [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://github.com/ym001/Manteia/blob/master/notebook/notebook_Manteia_presentation1.ipynb)
#
# Run this nootbook with GPU : ->Modifier->Parametre du nootbook->accélérateur matériel->GPU

# + id="nXesee8RWngy" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 650} outputId="8d6a2f39-4da1-4ee2-ed3c-f19b9f6f240f"
pip install manteia

# + id="IGPczm5WV1Gg" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 1000, "referenced_widgets": ["a43f9142011e4945be937ee2fd36ccde", "f3314f21b49c46f8b31fd7dcdd55620d", "fb81f8e3f4f6449496d0c4a57658b9d0", "3c750a8d41284f08a58651702e0b1bb0", "0bb4b523537e47d38f702b44b02aa7b9", "e79c4b6ef3a5421caccb426f28a0d845", "<KEY>", "b839b524c3e54d63bf4e03de5d602d8f", "65a4ca3ae382440eb8a74d094481d73e", "<KEY>", "<KEY>", "10186a169be14bd1aa795cd6c4e599ea", "<KEY>", "9de83207b5e549658da574c99b4fed87", "<KEY>", "<KEY>", "4d34aba3447a4caab5805f94e527ee09", "<KEY>", "e762a1d6005240a7b834a2a71a9ddb05", "<KEY>", "<KEY>", "2af2194037a84ed4bfe1b8bc0061b52f", "219b7dd5ca7640629f03ee4acd12b6b5", "b91caa64320b4e2182b6540926a844f2", "<KEY>", "<KEY>", "<KEY>", "5ba7ff1b8c3b4508972e87da96553e45", "<KEY>", "<KEY>", "157612982b594aeab8757006dae2df30", "a89cec822a12427ebb0637bd9896faf6"]} outputId="798221fb-075d-449e-eb8a-39961dce7ec7"
from Manteia.Classification import Classification 
from Manteia.Model import Model 
		
documents = ['What should you do before criticizing Pac-Man? WAKA WAKA WAKA mile in his shoe.','What did <NAME> say at the abortion clinic? Hasta last vista, baby.']
labels = ['funny','not funny']
		
model = Model(model_name ='roberta')
cl=Classification(model,documents,labels,process_classif=True)


# + id="5ekaykpJV1Gl" colab_type="code" colab={}


# + id="daUZAFFeV1Gp" colab_type="code" colab={}


StarcoderdataJupyterScriptsDedupFiltered