Categorization of Text Structures