mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30:17 +01:00
Update code/Traitement Langage Naturel/TALnegation.ipynb
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user