From 605bced94d26164c8da641c15353cb008a609f29 Mon Sep 17 00:00:00 2001 From: Yannis Grivaux Date: Thu, 23 Feb 2023 09:37:06 +0000 Subject: [PATCH] Update code/Traitement Langage Naturel/TALnegation.ipynb --- code/Traitement Langage Naturel/TALnegation.ipynb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/code/Traitement Langage Naturel/TALnegation.ipynb b/code/Traitement Langage Naturel/TALnegation.ipynb index be0ed57..4f8b7e1 100644 --- a/code/Traitement Langage Naturel/TALnegation.ipynb +++ b/code/Traitement Langage Naturel/TALnegation.ipynb @@ -6,13 +6,8 @@ "metadata": {}, "outputs": [], "source": [ - "#pip install unidecode\n", - "#pip install dataclass\n", - "#pip install nltk\n", - "#import os\n", - "#from unidecode import unidecode\n", - "#import nltk\n", - "#from dataclasses import dataclass" + #pip install spacy + #!python -m spacy download fr_core_news_sm ] }, { @@ -264,7 +259,7 @@ " averageScore = averageScore +scoreRev\n", " \n", " #Caractéristique de l'avis analysé\n", - " miniKey = set(miniKey)\n", + " #miniKey = set(miniKey)\n", "\n", "averageScore /= len(reviews)\n", "print(\"Format: [[Mot-clé, score associé]]\\n\")\n",