Package edu.stanford.nlp.sempre

Examples of edu.stanford.nlp.sempre.JoinFormula


      return "number";
    if(fgInfo.bInfo.expectedType1.equals(FreebaseInfo.BOOLEAN))
      return "";
    if(fgInfo.bInfo.expectedType1.equals(FreebaseInfo.TEXT))
      return "description";
    Formula type1Formula = new JoinFormula(FreebaseInfo.TYPE, new ValueFormula<Value>(new NameValue(fgInfo.bInfo.expectedType1)));
    try {
      if(fbFormulasInfo.getUnaryInfo(type1Formula)==null) {
        LogInfo.logs("No unary info for=%s",type1Formula);
        return null;
      }
      return fbFormulasInfo.getUnaryInfo(type1Formula).getRepresentativeDescrption();
    }
    catch(NullPointerException e) {
      if(type1Formula.toString().equals("(fb:type.object.type fb:type.object)"))
        return "thing";
      else {
        LogInfo.logs("Binfo exType1=%s, exType2=%s",fgInfo.bInfo.expectedType1,fgInfo.bInfo.expectedType2);
        throw new RuntimeException(e);
      }
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.sempre.JoinFormula

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.