old_contents: import nltk
  
  sentence = """
  Les couleurs de maison sont le rouge, jaune, bleu, vert et blanc.
  """
  nltk.data.load('tokenizers/punkt/french.pickle')
  
  tokens = nltk.word_tokenize(sentence)
  tagged = nltk.pos_tag(tokens)
  entities = nltk.chunk.ne_chunk(tagged)
  print(entities)
  
new_contents: import nltk
  from nltk.corpus import treebank
  
  #sentence = """
  #I shot an elephant in my pajamas
  #"""
  
  
  groucho_grammar = nltk.CFG.fromstring("""
  S -> NP VP
  PP -> P NP
  NP -> Det N | Det N PP | 'I'
  VP -> V NP | VP PP
  Det -> 'an' | 'my'
  N -> 'elephant' | 'pajamas'
  V -> 'shot'
  P -> 'in'
  """)
  
  sent = ['I', 'shot', 'an', 'elephant', 'in', 'my', 'pajamas']
  parser = nltk.ChartParser(groucho_grammar)
  for tree in parser.parse(sent):
      print(tree)
      tree.draw()
  
  
subject: use sketchy grammar