Created
July 19, 2022 11:22
-
-
Save NielsMinssen/8fa3d4a62ef724475da2d2f119b5706d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nltk | |
from nltk import sent_tokenize | |
from nltk import word_tokenize | |
from nltk.util import ngrams | |
from nltk.corpus import stopwords | |
from nltk.probability import FreqDist | |
from IPython.core.interactiveshell import InteractiveShell | |
InteractiveShell.ast_node_interactivity = "all" | |
import spacy | |
#Ouvrerture du fichier texte : | |
text_file = open("commentaires.txt") | |
#Lecture de la donnée: | |
text = text_file.read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment