Topic-to-essay generation with knowledge-based content selection