Package edu.stanford.nlp.sempre.paraphrase

Examples of edu.stanford.nlp.sempre.paraphrase.ParaphraseDataset$ParsingGroupInfo


  }
  public void extractRules() throws IOException {
    LogInfo.begin_track_printAll("Extracting substitution rules:");
    int i = 0;  
    BufferedReader reader = IOUtils.getBufferedFileReader(opts.dataFile);
    ParaphraseDataset dataset = Json.readValueHard(reader, ParaphraseDataset.class);
    for(ParaphraseExample ex: dataset.paraphraseExamples("train")) {
      extractRule(ex);
      if(++i % 10000 == 0)
        LogInfo.logs("Number of examples gone through: %s",i);
      if(i>=opts.maxExamples)
        break;
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.sempre.paraphrase.ParaphraseDataset$ParsingGroupInfo

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.