Example #1
0
        static void Main(string[] args)
        {
            Indexer indexer = new Indexer("Normal");
            if (System.Environment.MachineName.ToString().Equals("NINAHAACK"))
                indexer.IndexFiles(Constants.BASEPATHHAACK);
            else
                indexer.IndexFiles(Constants.BASEPATH);
            indexer.Close();

            MineracaoProj1Business.Searcher searcher = new MineracaoProj1Business.Searcher("Normal");
            TopDocs hits = searcher.Search(query1);
            Medidas med = new Medidas(hits, searcher, docs1);
            Console.WriteLine("Precisao = " + med.precisao);
            Console.WriteLine("Cobertura = " + med.cobetura);
            Console.WriteLine("FMeasure = " + med.fmeasure);
        }
Example #2
0
        private void _IndexAll(bool normal = false)
        {
            string dropdown = string.Empty;

            if (normal)
                dropdown = EProcessType.Normal.GetDescription();
            else
                dropdown = this.dropdownlist.Text;

            Indexer indexer = new Indexer(dropdown);

            if (System.Environment.MachineName.ToString().Equals("NINAHAACK"))
                indexer.IndexFiles(Constants.BASEPATHHAACK);
            else
                indexer.IndexFiles(Constants.BASEPATH);

            indexer.Close();
        }