code: def _post_process_term(self, term):
      if self._strip_final_period and (
          term.strip().endswith(".") or term.strip().endswith(",")
      ):
          term = term.strip()[:-1]
      return term
  
file_path: scattertext/scattertext/features/FeatsFromSpacyDoc.py
imports: from collections import Counter
  from itertools import chain
  import pandas
label_desc: Use image node_id 2 for calling the FeatsFromSpacyDoc obj's underlying member method code with example usage: obj._post_process_term(term) and returns: term