docstr: :param doc: spacy.Doc
  :return: pd.Series
docstr_tok: [":","param","doc",":","spacy.Doc",":","return",":","pd.Series"]
code: def get_doc_metadata(self, doc):
      """
  
      :param doc: spacy.Doc
      :return: pd.Series
      """
      return Counter(self._sp.encode_as_pieces(str(doc)))
  
imports: from collections import Counter
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
label_desc: Use image node_id 2 for calling the FeatsFromSentencePiece obj's underlying member method code with example usage: obj.get_doc_metadata(doc) and returns: Counter