Learning Structure and Schemas from Documents