Skip to content

Instantly share code, notes, and snippets.

@NielsMinssen
Created July 19, 2022 11:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NielsMinssen/8fa3d4a62ef724475da2d2f119b5706d to your computer and use it in GitHub Desktop.
Save NielsMinssen/8fa3d4a62ef724475da2d2f119b5706d to your computer and use it in GitHub Desktop.
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