class_docstr: Text Classification Model.
  
  The model takes word embeddings, puts them into an RNN to obtain a text
  representation, and puts the text representation in the end into a linear
  layer to get the actual class label. The model can handle single and multi
  class data sets.
class_docstr_tok: ["Text","Classification","Model",".","The","model","takes","word","embeddings",",","puts","them","into","an","RNN","to","obtain","a","text","representation",",","and","puts","the","text","representation","in","the","end","into","a","linear","layer","to","get","the","actual","class","label",".","The","model","can","handle","single","and","multi","class","data","sets","."]
code: def _get_state_dict(self):
      model_state = {
          **super()._get_state_dict(),
          "document_embeddings": self.embeddings.save_embeddings(
              use_state_dict=False
          ),
          "label_dictionary": self.label_dictionary,
          "label_type": self.label_type,
          "multi_label": self.multi_label,
          "multi_label_threshold": self.multi_label_threshold,
          "weight_dict": self.weight_dict,
      }
      return model_state
  
file_path: flair/flair/models/text_classification_model.py
imports: import logging
  from pathlib import Path
  from typing import Any, Dict, List, Union
  import torch
  import flair.embeddings
  import flair.nn
  from flair.data import Sentence
  from flair.file_utils import cached_path
label_desc: Use image node_id 4 for calling the TextClassifier obj's underlying member method code with example usage: obj._get_state_dict() and returns: model_state