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: This feature bundle matches other if other contains all the features of this bundle,
  i.e. if this bundle is an improper subset of other.
  Underspecified features will match.
  
  >>> f1 = f(F, N.pos, V.neg)
  >>> f2 = f(F.neg, N.pos, V.neg)
  >>> f3 = f(F.pos, N.neg, V.pos)
  >>> f1.matches(f2)
  True
  >>> f1.matches(f3)
  False
docstr_tok: ["This","feature","bundle","matches","other","if","other","contains","all","the","features","of","this","bundle",",","i.e",".","if","this","bundle","is","an","improper","subset","of","other",".","Underspecified","features","will","match",".",">",">",">","f1","=","f","(","F",",","N.pos",",","V.neg",")",">",">",">","f2","=","f","(","F.neg",",","N.pos",",","V.neg",")",">",">",">","f3","=","f","(","F.pos",",","N.neg",",","V.pos",")",">",">",">","f1.matches","(","f2",")","True",">",">",">","f1.matches","(","f3",")","False"]
code: def matches(self, other: "MorphosyntacticFeatureBundle") -> bool:
      """
      This feature bundle matches other if other contains all the features of this bundle,
      i.e. if this bundle is an improper subset of other.
      Underspecified features will match.
  
      >>> f1 = f(F, N.pos, V.neg)
      >>> f2 = f(F.neg, N.pos, V.neg)
      >>> f3 = f(F.pos, N.neg, V.pos)
      >>> f1.matches(f2)
      True
      >>> f1.matches(f3)
      False
      """
      if other is None:
          return False
      for f in self.features.keys():
          if f not in other.features:
              return False
          if (
              self[f] is not Underspecified
              and other[f] is not Underspecified
              and not (self[f] == other[f])
          ):
              return False
  
      return True
  
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 6 for calling the MorphosyntacticFeatureBundle obj's underlying member method code with example usage: obj.matches(other) and returns: True, False, False, False