Exemplo n.º 1
0
 public CorefDocMaker(Properties props, Dictionaries dictionaries)
     throws ClassNotFoundException, IOException {
   this.props = props;
   this.dict = dictionaries;
   reader = getDocumentReader(props);
   headFinder = getHeadFinder(props);
   md = getMentionFinder(props, dictionaries, headFinder);
   //    corenlp = new StanfordCoreNLP(props, false);
   corenlp = loadStanfordProcessor(props);
   treeLemmatizer = new TreeLemmatizer();
   singletonPredictor =
       (CorefProperties.useSingletonPredictor(props))
           ? getSingletonPredictorFromSerializedFile(
               CorefProperties.getPathSingletonPredictor(props))
           : null;
 }