Package edu.stanford.nlp.sempre

Examples of edu.stanford.nlp.sempre.NameValue


      String typesStr = entityTypesCache.get(id);
      if (typesStr != null) {
        for (String type : typesStr.split(","))
          types.add(type);
      }
      entities.add(new EntityLexicalEntry(query, query, Collections.singleton(e.name), new ValueFormula<NameValue>(new NameValue(id, e.name)), EntrySource.FBSEARCH, e.score, distance, types, tokenEditDistanceFeatures));
    }
    return entities;
  }
View Full Code Here


      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;
      }
View Full Code Here

TOP

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

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.