Hybrid semantic-document models