class_docstr: Data object used for all RasaModels.
  
  It contains all features needed to train the models.
  'data' is a mapping of attribute name, e.g. TEXT, INTENT, etc., and feature name,
  e.g. SENTENCE, SEQUENCE, etc., to a list of feature arrays representing the actual
  features.
  'label_key' and 'label_sub_key' point to the labels inside 'data'. For
  example, if your intent labels are stored under INTENT -> IDS, 'label_key' would
  be "INTENT" and 'label_sub_key' would be "IDS".
class_docstr_tok: ["Data","object","used","for","all","RasaModels",".","It","contains","all","features","needed","to","train","the","models",".","'data","'","is","a","mapping","of","attribute","name",",","e.g",".","TEXT",",","INTENT",",","etc.",",","and","feature","name",",","e.g",".","SENTENCE",",","SEQUENCE",",","etc.",",","to","a","list","of","feature","arrays","representing","the","actual","features",".","'label_key","'","and","'label_sub_key","'","point","to","the","labels","inside","'data","'",".","For","example",",","if","your","intent","labels","are","stored","under","INTENT","-",">","IDS",",","'label_key","'","would","be","``","INTENT","''","and","'label_sub_key","'","would","be","``","IDS","''","."]
docstr: Add list of features to data under specified key.
  
  Should update number of examples.
  
  Args:
      key: The key
      sub_key: The sub-key
      features: The features to add.
docstr_tok: ["Add","list","of","features","to","data","under","specified","key",".","Should","update","number","of","examples",".","Args",":","key",":","The","key","sub_key",":","The","sub-key","features",":","The","features","to","add","."]
code: def add_features(
      self,
      key: Text,
      sub_key: Text,
      features: Optional[List[FeatureArray]],
  ) -> None:
      """Add list of features to data under specified key.
  
      Should update number of examples.
  
      Args:
          key: The key
          sub_key: The sub-key
          features: The features to add.
      """
      if features is None:
          return
  
      for feature_array in features:
          if len(feature_array) > 0:
              self.data[key][sub_key].append(feature_array)
  
      if not self.data[key][sub_key]:
          del self.data[key][sub_key]
  
      # update number of examples
      self.num_examples = self.number_of_examples()
  
imports: import logging
  from typing import Optional, DefaultDict, Dict, Iterable, Text, List, Tuple, Any, Union, NamedTuple, ItemsView, overload, cast
  from collections import defaultdict, OrderedDict
  import numpy
  import scipy.sparse
  from sklearn.model_selection import train_test_split
label_desc: Use image node_id 17 for calling the RasaModelData obj's underlying member method code with example usage: obj.add_features(key, sub_key, features) without return types