if (testParserName != null) testParser = LBJ2.util.ClassUtils.getParser(testParserName, new Class[]{ String.class }, new String[]{ testFile }); MTypePredictor classifier = new MTypePredictor(); TestDiscrete tester = new TestDiscrete(); for (int i = 2; i < args.length; ++i)
if (testParserName != null) testParser = LBJ2.util.ClassUtils.getParser(testParserName, new Class[]{ String.class }, new String[]{ testFile }); MTypePredictor classifier = new MTypePredictor(); TestDiscrete tester = new TestDiscrete(); for (int i = 2; i < args.length; ++i)
new ExtendHeadsDecoder(new MDExtendHeads(), new BIODecoder(new MentionDetectorMyBIOHead())); MTypePredictor mTyper = new MTypePredictor(); DocLoader loader = new DocFromTextLoader(mdDec, mTyper); // From a string Doc doc = null;
new ExtendHeadsDecoder(new MDExtendHeads(), new BIODecoder(new MentionDetectorMyBIOHead())); MTypePredictor mTyper = new MTypePredictor(); DocLoader loader = new DocFromTextLoader(mdDec, mTyper); // From a string Doc doc = loader.loadDoc(fullText);
@CommandDescription(description = "CorefPlainTextFileList fileList configFile") public static void CorefPlainTextFileList(String fileList, String configFile) throws Exception{ ConfigSystem.parseProps(configFile); BufferedReader in = null; MentionDecoder mdDec = new ExtendHeadsDecoder(new MDExtendHeads(), new BIODecoder(new MentionDetectorMyBIOHead())); MTypePredictor mTyper = new MTypePredictor(); DocLoader loader = new DocPlainTextLoader(fileList, mdDec, mTyper, true); // From a string List<Doc> docs = loader.loadDocs(); ConfigSystem.TestCoref(docs, configFile); }
@CommandDescription(description = "CorefPlainTextFileList fileList configFile") public static void CorefPlainTextFileList(String fileList, String configFile) throws Exception{ ConfigSystem.parseProps(configFile); BufferedReader in = null; MentionDecoder mdDec = new ExtendHeadsDecoder(new MDExtendHeads(), new BIODecoder(new MentionDetectorMyBIOHead())); MTypePredictor mTyper = new MTypePredictor(); DocLoader loader = new DocPlainTextLoader(fileList, mdDec, mTyper, true); // From a string List<Doc> docs = loader.loadDocs(); ConfigSystem.TestCoref(docs, configFile); }