Package edu.stanford.nlp.sempre

Examples of edu.stanford.nlp.sempre.BooleanValue


  }

  public static void main(String[] args) throws IOException {
    opts.wordVectorFile = "/Users/jonathanberant/Projects/semparse/lib/wordreprs/cbow-lowercase-50.vectors";
    ParaphraseExample paraExample =new ParaphraseExample("what do people in the czech republic speak?",
        "the official language of czech republic ?",new BooleanValue(true));
    if(args[0].equals("full_matrix")) {
      opts.similarityFunc="full_matrix";
      VectorSpaceModel vsm = VectorSpaceModel.getSingleton();
      Params params = new Params();
      params.read("/Users/jonathanberant/Research/temp/918params"); //full matrix
View Full Code Here


  }

  public static void main(String[] args) throws IOException {

    ParaphraseExample paraExample =new ParaphraseExample("what type of music did richard wagner play ?",
        "what is the musical genres of richard wagner ?",new BooleanValue(true));
    Aligner aligner = new Aligner();
    Params params = new Params();
    params.read("/Users/jonathanberant/Research/temp/params");
    Alignment alignment = aligner.align(paraExample, params);
    alignment.printFeaturesAndWeights(params)
View Full Code Here

      LogInfo.begin_track("FormulaGenerationInfo=%s",formulaGenerationInfo);
      Set<String> generatedQuestions =
              qGenerator.getQuestionsForFgInfo(formulaGenerationInfo); //maybe generalize to arbitrary formula
      for(String generatedQuestion: generatedQuestions) { //for every generated question
        LogInfo.logs("ParaphraseParser.parseQuestion: genQue=%s",generatedQuestion);
        ParaphraseExample paraEx = new ParaphraseExample(question, generatedQuestion, new BooleanValue(true));

        if(opts.vsm)
          vsmModel.computeSimilarity(paraEx, params);
        if(opts.alignment)
          aligner.align(paraEx, params);
View Full Code Here

TOP

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

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.