src/UntypedCoref/CorefReader.cpp
/* Given a file in c_flat format, load it into corefs */
Given a file in c_flat format, load it into corefs
Given a file in c_flat format load it into corefs
void CorefReader::readAllCorefs(const char *file_name, LinkAllMentions &lam, UTCoref & corefs) {
   std::ifstream inf;
   char line[COREF_MAX_READ];
   inf.open(file_name);
   if (!inf.is_open()) {
	  throw UnexpectedInputException("CorefReader.cpp::readAllCorefs",
                                     "coref file won't open");
   }
   for (int lineno = 0; inf.getline(line, COREF_MAX_READ) ; lineno++) {
	  processLine(line, lam, corefs);
   }
   inf.close();
}
void CorefReader :: readAllCorefs ( const char * file_name , LinkAllMentions & lam , UTCoref & corefs ) { std :: ifstream inf ; char line [ COREF_MAX_READ ] ; inf . open ( file_name ) ; if ( ! inf . is_open ( ) ) { throw UnexpectedInputException ( " " , " " ) ; } for ( int lineno = 0 ; inf . getline ( line , COREF_MAX_READ ) ; lineno ++ ) { processLine ( line , lam , corefs ) ; } inf . close ( ) ; }
Given a file in c_flat format, load it into corefs
Given a file in c_flat format load it into corefs