Exemple #1
0
        /// <summary>
        /// Prepares this instance.
        /// </summary>
        public override void prepare()
        {
            if (isReady)
            {
                return;
            }



            imbLanguageFrameworkManager.log.log("Semantic lexicon manager prepare start");

            constructionSettings.Poke();
            settings.Poke();

            if (constructor == null)
            {
                constructor = new lexiconConstructor(constructionSettings);
            }

            var missing = settings.sourceFiles.checkMissingFiles();

            foreach (string mfile in missing)
            {
                imbLanguageFrameworkManager.log.log("Source file missing: " + mfile);
            }
            if (missing.Any())
            {
                aceGeneralException axe = new aceGeneralException("Lexicon source files missing", null, missing, "Lexicon source files missing");
                throw axe;
            }

            consoleSettings.Poke();

            console = new lexiconConsole(consoleSettings.defaultSession, consoleSettings);
            semanticLexiconExtensions.SetBrightStarDB();

            //String conString = "type=rest;storesdirectory=G:\\BrightStarDB\\;storename=lex";

            string conString = @"type=rest;endpoint=http://localhost:8090/brightstar;storename=lex";


            lexiconContext = new semanticLexiconContext(conString);



            imbLanguageFrameworkManager.log.log("Semantic lexicon manager prepare finished");
        }
Exemple #2
0
 public lexiconConsoleWorkspace(lexiconConsole _c) : base(_c)
 {
 }