class_docstr: A representation of a set of features, usually associated with a word form.
class_docstr_tok: ["A","representation","of","a","set","of","features",",","usually","associated","with","a","word","form","."]
docstr: Use dict-type syntax for accessing the values of features.
  >>> f1 = f(F.pos, N.pos)
  >>> f1[F]
  [pos]
  >>> f1[V]
  Traceback (most recent call last):
  cltk.core.exceptions.CLTKException: {F: [pos], N: [pos]} unspecified for V
  >>> f1['F']
  [pos]
docstr_tok: ["Use","dict-type","syntax","for","accessing","the","values","of","features",".",">",">",">","f1","=","f","(","F.pos",",","N.pos",")",">",">",">","f1","[","F","]","[","pos","]",">",">",">","f1","[","V","]","Traceback","(","most","recent","call","last",")",":","cltk.core.exceptions.CLTKException",":","{","F",":","[","pos","]",",","N",":","[","pos","]","}","unspecified","for","V",">",">",">","f1","[","'","F","'","]","[","pos","]"]
code: def __getitem__(
      self, feature_name: Union[str, Type[MorphosyntacticFeature]]
  ) -> List[MorphosyntacticFeature]:
      """
      Use dict-type syntax for accessing the values of features.
      >>> f1 = f(F.pos, N.pos)
      >>> f1[F]
      [pos]
      >>> f1[V]
      Traceback (most recent call last):
      cltk.core.exceptions.CLTKException: {F: [pos], N: [pos]} unspecified for V
      >>> f1['F']
      [pos]
      """
      if type(feature_name) == str:
          if feature_name not in globals():
              raise TypeError(
                  feature_name + " is not a morphosytactic feature"
              )
          feature_name = globals()[feature_name]
  
      if not issubclass(feature_name, MorphosyntacticFeature):
          raise TypeError(
              str(feature_name) + " is not a morphosytactic feature"
          )
  
      if feature_name in self.features:
          return self.features[feature_name]
      else:
          raise CLTKException(f"{self} unspecified for {feature_name}")
  
file_path: cltk/src/cltk/morphology/morphosyntax.py
imports: from typing import Dict, List, Optional, Tuple, Type, Union
  from cltk.core.exceptions import CLTKException
  from cltk.morphology.universal_dependencies_features import *
label_desc: Use image node_id 2 for calling the MorphosyntacticFeatureBundle obj's underlying member method code with example usage: obj.__getitem__(feature_name) and returns: self