Example #1
0
    public static void TrainingIncreaseTarget()
    {
        TraningDataset.InitIncreaseStock();
        var PreviewId   = "";
        var PreviewRoot = new HTMLEngine.MyRootHtmlNode();

        foreach (var increase in TraningDataset.IncreaseStockList)
        {
            if (PreviewId.Equals(increase.id))
            {
                var htmlfile = Program.DocBase + @"\FDDC_announcements_round1_train_20180518\round1_train_20180518\定增\html\" + increase.id + ".html";
                PreviewRoot = HTMLEngine.Anlayze(htmlfile);
            }
            TableAnlayzeTool.PutTrainingItem(PreviewRoot, increase.PublishTarget);
        }

        var Rank = new List <int>();

        Rank = TableAnlayzeTool.TrainingTitleResult.Values.ToList();
        Rank.Sort();
        Rank.Reverse();
        var Top10 = Rank[9];

        foreach (var title in TableAnlayzeTool.TrainingTitleResult)
        {
            if (title.Value >= Top10)
            {
                Console.WriteLine(title.Key + ":" + title.Value);
            }
        }
    }
Example #2
0
 private static void Traning()
 {
     Training = new StreamWriter("Training.log");
     TraningDataset.InitContract();
     TraningDataset.InitStockChange();
     TraningDataset.InitIncreaseStock();
     ContractTraning.Train();
     Training.Close();
 }
Example #3
0
 static void Main(string[] args)
 {
     //生成PDF的TXT文件的批处理命令
     //PDFToTXT.GetBatchFile();
     //初始化
     Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
     BussinessLogic.LoadCompanyName(@"Resources\FDDC_announcements_company_name_20180531.json");
     TraningDataset.InitContract();
     TraningDataset.InitStockChange();
     TraningDataset.InitIncreaseStock();
     ContractTraning.TraningMaxLenth();
     ContractTraning.EntityWordPerperty();
     Training.Close();
     UT();
     Extract();
     Logger.Close();
     Score.Close();
 }