!pip install spacy
!python -m spacy download en_core_web_sm
nlp = spacy.load('en_core_web_sm')

sentence = "Mm-hmm."

doc = nlp(sentence)
doc.to_json()
{'text': 'Mm-hmm.',
 'ents': [],
 'sents': [{'start': 0, 'end': 7}],
 'tokens': [{'id': 0,
   'start': 0,
   'end': 2,
   'tag': 'NNP',
   'pos': 'PROPN',
   'morph': 'Number=Sing',
   'lemma': 'Mm',
   'dep': 'compound',
   'head': 2},
  {'id': 1,
   'start': 2,
   'end': 3,
   'tag': 'HYPH',
   'pos': 'PUNCT',
   'morph': 'PunctType=Dash',
   'lemma': '-',
   'dep': 'punct',
   'head': 2},
  {'id': 2,
   'start': 3,
   'end': 6,
   'tag': 'NN',
   'pos': 'NOUN',
   'morph': 'Number=Sing',
   'lemma': 'hmm',
   'dep': 'ROOT',
   'head': 2},
  {'id': 3,
   'start': 6,
   'end': 7,
   'tag': '.',
   'pos': 'PUNCT',
   'morph': 'PunctType=Peri',
   'lemma': '.',
   'dep': 'punct',
   'head': 2}]}