citation-einstein.py 247 B

123456789
  1. from random import choice
  2. from nltk.tokenize import sent_tokenize, word_tokenize
  3. with open("dixit.txt") as article:
  4. quotes = sent_tokenize(article.read())
  5. text_out = "À ce propos, Einstein a dit un jour : \"%s\"." % quote
  6. print(text_out);