class_docstr: Uses NLTK's PorterStemmer to stem words.
code: def stem_word(self, word):
      new_text = self.stemmer.stem(word.text)
      return Token(
          text=new_text,
          idx=word.idx,
          lemma=word.lemma_,
          pos=word.pos_,
          tag=word.tag_,
          dep=word.dep_,
          ent_type=word.ent_type_,
          text_id=getattr(word, "text_id", None),
      )
  
file_path: magnitude/pymagnitude/third_party/allennlp/data/tokenizers/word_stemmer.py
imports: from __future__ import absolute_import
  from nltk.stem import PorterStemmer
  from allennlp.common import Registrable
  from allennlp.data.tokenizers.token import Token
label_desc: Use image node_id 2 for calling the PorterStemmer obj's underlying member method code with example usage: obj.stem_word(word) and returns: Token