src/IdfTrainerPreprocessor/IdfTrainerPreprocessor.cpp
/**
 * Prints utility usage information to standard error.
 */
Prints utility usage information to standard error.
Prints utility usage information to standard error .
void print_usage()
{
	cerr << "usage: IdfTrainerPreprocessor config (-n entities | -d | -b entities) (-o output) input ..." << endl;
	cerr << "    config     name of Serif configuration file" << endl;
	cerr << "    entities   name of file containing entity names" << endl;
    cerr << "    output     name of path to direct output files to" << endl;
	cerr << "    input      name of input file to preprocess" <<  endl << endl;
	cerr << "options:" << endl;
	cerr << "    -n         use only the entity names from the given file" << endl;
	cerr << "    -d         use the default Serif entity names" << endl;
	cerr << "    -b         use both default entity names and names from the given file" << endl;
	cerr << "               (redefinition of entity names is not allowed)" << endl << endl;
    cerr << "    -o         path for the output file" << endl << endl;
	cerr << "The IdfTrainerPreprocessor takes as input one or more SGML input files and" << endl;
	cerr << "outputs them in a sexp format compatible with the IdfTrainer." << endl << endl;
	cerr << "Each input file `input' will be output to `input.sexp'. If an output_path" << endl;
    cerr << "is specified, then output goes to `output_path/input.sexp'. Input files must" << endl;
	cerr << "contain one or more <DOCUMENT> or <DOC> tags. <ENAMEX> and <TIMEX> tags are" << endl;
	cerr << "recognized and their meta-data preserved and output in the sexp output files." << endl;
	cerr << "<SENT> tags are respected as sentence boundaries." << endl << endl;
	cerr << "Entity names files have the following format:" << endl << endl;
	cerr << "    n" << endl;
	cerr << "    NAME(1)[=REPLACE(1)]" << endl;
	cerr << "    ." << endl;
	cerr << "    ." << endl;
	cerr << "    NAME(n)[=REPLACE(n)]" << endl << endl;
	cerr << "where `n' is the number of entity names in the file, NAME(k) is the kth" << endl;
	cerr << "recognized entity name, and REPLACE(k) is the optional replacement text for its" << endl;
	cerr << "respective entity name." << endl;
}
void print_usage ( ) { cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl << endl ; cerr << " " << endl << endl ; cerr << " " << endl ; cerr << " " << endl << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl << endl ; cerr << " " << endl << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl << endl ; cerr << " " << endl ; cerr << " " << endl ; cerr << " " << endl ; }
Prints utility usage information to standard error.
Prints utility usage information to standard error .