docstr: Removes punctuation
  
  Parameters
  ----------
  doc : spacy.tokens.Doc
      spacy doc
  
  Returns
  -------
  string
      With punctuation stripped
docstr_tok: ["Removes","punctuation","Parameters","--","--","--","--","--","doc",":","spacy.tokens.Doc","spacy","doc","Returns","--","--","--","-","string","With","punctuation","stripped"]
code: def strip_punctuation(doc):
      """Removes punctuation
  
      Parameters
      ----------
      doc : spacy.tokens.Doc
          spacy doc
  
      Returns
      -------
      string
          With punctuation stripped
  
      """
      # doc is a spacy doc
      while len(doc) and doc[-1].pos_ == "PUNCT":
          doc = doc[:-1]
      return doc.text
  
imports: import numpy
  import collections
  import re
  import os
  import json
  import pattern
  from pattern.en import tenses
  from .editor import recursive_apply, MunchWithAdd
label_desc: Use image node_id 2 for calling the Perturb obj's underlying member method code with example usage: obj.strip_punctuation(doc) and returns: doc