First time here? Check out the FAQ!
Change: recognizer.load('trainner/trainner.yml') to: recognizer.read('trainner/trainner.yml')