Identifying main ideas in different types of texts