Beispiel #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public static void Main(string[] pArgs)
        {
            DbBuilder.InitOnce();
            //DbBuilder.UpdateSchema();
            const int step = 2;

            switch (step)
            {
            case 0:
                using (ISession sess = new SessionProvider().OpenSession()) {
                    BuildWordNet.BuildBaseDb(sess);
                    //Stats.PrintAll(sess);
                }
                break;

            case 1:
                using (ISession sess = new SessionProvider().OpenSession()) {
                    BuildArtifacts.InsertWordAndSynsetArtifacts(sess);
                }
                break;

            case 2:
                BuildFactors.InsertAllFactors();
                break;
            }
        }
Beispiel #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////
        /*--------------------------------------------------------------------------------------------*/
        public static void Main(string[] pArgs)
        {
            DbBuilder.InitOnce();
            DbBuilder.UpdateSchema();
            InitFabricClient();

            var commander = new Commander();

            commander.Start();
        }