static void Main(string[] args) { DataProcArgs cmd = new DataProcArgs(args); IGroupBoundary boundary = null; if (cmd.queryBoundary) { //we need to keep tract of the queries for ranking boundary = new QueryBoundary(); } else { //data boundary: no boundary boundary = new OnelineGroup(); } string[] labelName = { cmd.labelName }; IParser<float> RateParser = new MsnLabelParser(labelName, cmd.labelNameValueFile); Console.WriteLine("Loading data from tsv file " + cmd.tsvFile); MsnFeatureParser featureParser = null; //read and process only a subset of activated features as specified in the activeFeatureFile if (cmd.activeFeatureFile != null) { string[] FeatureNames = TsvFileLoader.ReadFeatureNames(cmd.activeFeatureFile); featureParser = new MsnFeatureParser(FeatureNames); } TsvFileLoader tsvFileLoader = new TsvFileLoader(cmd.tsvFile, null, RateParser, featureParser, boundary); Console.WriteLine("Finishing loading the tsv file"); Console.WriteLine("Create LabelFeatureData uncoded ..."); CLabelFeatureData labelFeatureData = new CLabelFeatureData(tsvFileLoader.FeatureName, tsvFileLoader.Labels, tsvFileLoader.GroupId, tsvFileLoader.Feature); Console.WriteLine("Save LabelFeatureData uncoded ..."); if (cmd.binFile != null) { labelFeatureData.Save(cmd.binFile); } Console.WriteLine("Create LabelFeatureData coded ..."); CLabelFeatureDataCoded labelFeatureDataCoded = new CLabelFeatureDataCoded(labelFeatureData, cmd.cThreads, cmd.storeCodedFeature, cmd.fCodedFeatureSparse); Console.WriteLine("Save LabelFeatureData coded ..."); if (cmd.binFileCoded != null) { labelFeatureDataCoded.Save(cmd.binFileCoded); } }