Пример #1
0
 /** Demonstrates usage of the generateDisambiguationPhraseAndTypes api function. */
 protected void demo17() throws IOException, UnknownHostException, CycApiException {
   if (cycAccess.isOpenCyc()) {
     Log.current.println("\nThis demo is not available in OpenCyc");
   } else {
     Log.current.println(
         "Demonstrating usage of the generateDisambiguationPhraseAndTypes api function.\n");
     CycFort mt = cycAccess.getKnownConstantByName("PeopleDataMt");
     CycList objects = cycAccess.makeCycList("(#$Penguin #$PittsburghPenguins)");
     CycList disambiguationExpression = cycAccess.generateDisambiguationPhraseAndTypes(objects);
     Log.current.println(
         "the result of disambiguating the objects \""
             + objects.cyclify()
             + "\" is\n"
             + disambiguationExpression);
   }
 }