An Effective Algorithm for Classification of Text with Weak Sequential Relationships