title: Detecting HTML table orientation based only on table data
body: <p>Given an HTML table with none of it's cells identified as "&lt; th >" or "header" cells, I want to automatically detect whether the table is a "Vertical" table or "Horizontal" table.</p>
  
  <p>For example:
  This is a Horizontal table:</p>
  
  <p><img src="https://i.stack.imgur.com/oUQGy.png" alt="enter image description here"></p>
  
  <p>and this is a vertical table:</p>
  
  <p><img src="https://i.stack.imgur.com/SWQBX.png" alt="enter image description here"></p>
  
  <p>of course keep in mind that the "Bold" property along with the shading and any styling properties will not be available at the classification time.</p>
  
  <p>I was thinking of approaching this by a statistical means, I can hand write couple of features like "if the first row has numbers, but the first column doesn't. That's probably a Vertical table" and give score for each feature and combine to decide the Class of the table orientation.</p>
  
  <p>Is that how you approach such a problem? I haven't used any statistical-based algorithm before and I am not sure what would be optimal for such a problem</p>