@Test public final void testParsePath() throws Exception { logger.info(String.valueOf(cons.size())); logger.info(tas.getView(ViewNames.PARSE_GOLD).toString()); for(int i = 0; i < cons.size(); i++) { String prediction = cons.get(i).toString() + "->" + parsePath.getFeatures(cons.get(i)).toString(); assertTrue(correctResponses.contains(prediction)); } }
public ParsePath(String parseViewName) { if (!ViewNames.isItParseView(parseViewName)) { log.warn("The view doesn't seem to belong to the parse view . . . "); } this.parseViewName = parseViewName; }
ParsePath implements FeatureExtractor { public ParsePath(String parseViewName) { if (!ViewNames.isItParseView(parseViewName)) { log.warn("The view doesn't seem to belong to the parse view . . . "); } this.parseViewName = parseViewName; } }
ParsePath implements FeatureExtractor { public ParsePath(String parseViewName) { if (!ViewNames.isItParseView(parseViewName)) { log.warn("The view doesn't seem to belong to the parse view . . . "); } this.parseViewName = parseViewName; } ParsePath(String parseViewName); }
ParsePath implements FeatureExtractor { public ParsePath(String parseViewName) { if (!ViewNames.isItParseView(parseViewName)) { log.warn("The view doesn't seem to belong to the parse view . . . "); } this.parseViewName = parseViewName; } ParsePath(String parseViewName); @Override Set<Feature> getFeatures(Constituent c); @Override String getName(); }
ParsePath implements FeatureExtractor { public ParsePath(String parseViewName) { if (!ViewNames.isItParseView(parseViewName)) { log.warn("The view doesn't seem to belong to the parse view . . . "); } this.parseViewName = parseViewName; } ParsePath(String parseViewName); @Override Set<Feature> getFeatures(Constituent c); @Override String getName(); static ParsePath CHARNIAK; static ParsePath STANFORD; }