Beispiel #1
0
 static void Main(string[] args)
 {
     util.clearLog();
     util.log("starting .............");
     Lexicon mylexicon = new Lexicon();
     mylexicon.getPredicates("death place",20,50);
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            util.clearLog();
            util.log("starting .............");
            Lexicon mylexicon = new Lexicon();
            List<LexiconPredicate> predicates = mylexicon.getPredicates(" of Egypt", 20,10);

              foreach (LexiconPredicate predicate in predicates)
              {
              util.log(predicate.ToSimpleString());
              }
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            util.clearLog();
            util.log("starting .............");
            Lexicon mylexicon = new Lexicon();
            List<LexiconPredicate> predicates = mylexicon.getPredicates("birth Place of barack obama", 20,30);

              foreach (LexiconPredicate predicate in predicates)
              {
              util.log(predicate.ToString());
              }
        }
Beispiel #4
0
        static void Main(string[] args)
        {
            util.clearLog();
            util.log("starting .............");
            Lexicon mylexicon = new Lexicon();

            //List<LexiconPredicate> predicates = mylexicon.getPredicates("cities of", 30, 10);
            //foreach (LexiconPredicate predicate in predicates)
            //{
            //    util.log(predicate.ToSimpleString());
            //}

            List<LexiconLiteral> literals = mylexicon.getLiterals("MAC book air ", 30, 20);

            foreach (LexiconLiteral l in literals)
            {
                util.log(l.ToSimpleString());
            }
        }