コード例 #1
0
 public static String getNaturalLanguageDescription(
     String descriptionKBSyntax, AbstractReasonerComponent service) throws ParseException {
   Description d = KBParser.parseConcept(descriptionKBSyntax);
   NaturalLanguageDescriptionConvertVisitor visitor =
       new NaturalLanguageDescriptionConvertVisitor(service);
   d.accept(visitor);
   String ret = visitor.getDescription();
   return ret;
 }
コード例 #2
0
 public static String getNaturalLanguageDescription(
     Description description, AbstractReasonerComponent service) {
   NaturalLanguageDescriptionConvertVisitor visitor =
       new NaturalLanguageDescriptionConvertVisitor(service);
   description.accept(visitor);
   String ret = visitor.getDescription();
   return ret;
 }