Design and Implementation of Lexical Analyzer for Classification algorithms