예제 #1
0
 static void Main(string[] args)
 {
     ArticleQuerier querier = new ArticleQuerier(QueryDataset.TrainDataset);
     Article article = querier.Query(1);
     Console.WriteLine(article.Title);
     Console.WriteLine(article.PlainText);
     Console.ReadKey();
 }
        /// <summary>
        /// MainWindow constructor
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            // get all articles under current dataset
            ArticleQuerier querier = new ArticleQuerier(dataset);
            articles = querier.Query();

            // set default article ID
            if (articles.Count > 0)
            {
                articleID = 0;
            }
        }