Package opennlp.ccg.disjunctivizer

Examples of opennlp.ccg.disjunctivizer.EdgeMatchFilter


   
    edge = new LFEdge(new LFVertex(new NominalAtom("w0"), new Proposition("blah")),
        new LFVertex(new NominalAtom("w1"), new Proposition("blah blah")),
        new LFEdgeLabel(new ModeLabel("blase")));
   
    filter = new EdgeMatchFilter(edge, MatchType.LABEL_MISMATCH, MatchType.SOURCE_PREDICATE_MISMATCH,
        MatchType.TARGET_PREDICATE_MATCH);
  }
View Full Code Here


  }

  @Test
  public void testEdgeMatchFilter() {
    try {
      new EdgeMatchFilter(null, MatchType.LABEL_MATCH);
      fail("able to specify null edge");
    }
    catch(IllegalArgumentException expected) {
      // do nothing
    }
View Full Code Here

    Set<Integer> indices = new HashSet<Integer>();
    indices.add(0);
    indices.add(2);
    indices.add(3);
   
    edgeFilter = new CompositeFilter<LFEdge>(new EdgeMatchFilter(one, MatchType.SOURCE_PREDICATE_MATCH,
        MatchType.LABEL_MISMATCH), new AlignedEdgeFilter(indices,
            MatchType.TARGET_ALIGNED, MatchType.SOURCE_ALIGNED));
   
    set = new FilteredLFEdgeSet(edges, edgeFilter);
  }
View Full Code Here

TOP

Related Classes of opennlp.ccg.disjunctivizer.EdgeMatchFilter

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.