title: yaml.scanner.ScannerError: while scanning a directive
body: <p>I use PyYAML to read a file, python code is: </p>
  
  <pre><code>with open('demo.yml') as f:
      dataMap = yaml.load(f)
  </code></pre>
  
  <p>demo.yml:</p>
  
  <pre><code>%YAML:1.0
  my_svm: !!opencv-ml-svm
    svm_type: C_SVC
    kernel: { type:LINEAR }
    C: 1.
  </code></pre>
  
  <p>Then error is:</p>
  
  <pre><code>yaml.scanner.ScannerError: while scanning a directive
    in "demo.yml", line 1, column 1
  expected alphabetic or numeric character, but found ':'
    in "demo.yml", line 1, column 6
  </code></pre>
  
  <p>Someone help me?</p>