#include <stdio.h>#include <unistd.h>#include <getopt.h>#include <sys/stat.h>#include <libgen.h>#include "../error/error.h"#include "../hash/nps_vocab.c"#include "Perceptron.c"Defines | |
| #define | _GNU_SOURCE |
Functions | |
| void | print_usage (FILE *f, char *progname) |
| int | parse_args (int argc, char **argv) |
| int | main (int argc, char **argv) |
Variables | |
| char | usage [] |
| int | ignoreBias = 0 |
| int64_t | numIterations = 10 |
| int64_t | verbose = 1 |
| #define _GNU_SOURCE |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
| int parse_args | ( | int | argc, | |
| char ** | argv | |||
| ) |
| void print_usage | ( | FILE * | f, | |
| char * | progname | |||
| ) |
| int ignoreBias = 0 |
| int64_t numIterations = 10 |
| char usage[] |
"usage: %s [options] model_directory file\n" "Release: " HGVERSION "\n" "Binary perceptron training expects NPSML classifier file format as input.\n" "Instance weights are ignored (due to lack of appropriate translation)\n" "Options include:\n" "[-h|--help] print this message and exit\n" "[-i|--iterations] the maximum number of training iterations (defaults to 20)\n" "[-n|--nobias] bias parameter will be 0\n" "[-q|--quiet] quite mode\n"
| int64_t verbose = 1 |
1.6.3