code: def getPattern(self, word):
          
          if word in self.patterns:
              return self.patterns[word]
          else:
              raise ValueError('Unknown pattern in getPattern().', word)
docs: Returns the pattern with key word.
  
          Example: net.getPattern("tom") => [0, 0, 0, 1]