Package edu.stanford.nlp.sempre.paraphrase

Examples of edu.stanford.nlp.sempre.paraphrase.Context


      Interval interval1 = lemmaToInterval.get(tokens[0]);
      Interval interval2 = lemmaToInterval.get(tokens[1]);
      if(nounNounAlignment(tokens[2],interval1,interval2)) {
        List<String> question1 = Arrays.asList(tokens[0].split("\\s+"));
        List<String> question2 = Arrays.asList(tokens[1].split("\\s+"));
        Context context1 = new Context(question1, interval1);
        Context context2 = new Context(question2, interval2);
        if(!context1.equals(context2)) {
          insertRule(context1,context2);
          insertRule(context2,context1);
        }
        numOfUsedParaphrases++;
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.sempre.paraphrase.Context

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.