Examples of matchesAt()


Examples of com.foundationdb.server.types.texpressions.Matchers.IndexMatcher.matchesAt()

        IndexMatcher matcher = (IndexMatcher)context.exectimeObjectAt(MATCHER_INDEX);
        if (matcher == null || !matcher.sameState(substr, '\\')) {
            context.putExectimeObject(MATCHER_INDEX, matcher = new IndexMatcher(substr));
        }

        int index = matcher.matchesAt(str, count);
        String ret = index < 0 // no match found
                ? str
                : str.substring(0, index);
        if (signed) {
            ret = new StringBuilder(ret).reverse().toString();
View Full Code Here

Examples of edu.stanford.nlp.trees.tregex.TregexMatcher.matchesAt()

    StringBuilder annotationStr = new StringBuilder();

    for (String featureName : features) {
      Pair<TregexPattern, Function<TregexMatcher, String>> behavior = annotationPatterns.get(featureName);
      TregexMatcher m = behavior.first().matcher(root);
      if (m.matchesAt(t))
        annotationStr.append(behavior.second().apply(m));
    }

    return annotationStr.toString();
  }
View Full Code Here

Examples of edu.stanford.nlp.trees.tregex.TregexMatcher.matchesAt()

    // something completely different than "and".  Furthermore,
    // downstream code was written assuming "not" would be the head...
    if (motherCat.equals("CONJP")) {
      for (TregexPattern pattern : headOfConjpTregex) {
        TregexMatcher matcher = pattern.matcher(t);
        if (matcher.matchesAt(t)) {
          return matcher.getNode("head");
        }
      }
      // if none of the above patterns match, use the standard method
    }
View Full Code Here

Examples of edu.stanford.nlp.trees.tregex.TregexMatcher.matchesAt()

    if (motherCat.equals("SBARQ") || motherCat.equals("SINV")) {
      if (!makeCopulaHead) {
        for (TregexPattern pattern : headOfCopulaTregex) {
          TregexMatcher matcher = pattern.matcher(t);
          if (matcher.matchesAt(t)) {
            return matcher.getNode("head");
          }
        }
      }
      // if none of the above patterns match, use the standard method
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.