From c81ac64d880913b8ee9181c4de175a628dd5ab65 Mon Sep 17 00:00:00 2001 From: Marjorie Armando <marjorie.armando.1@etu.univ-amu.fr> Date: Mon, 17 Apr 2017 23:23:34 +0200 Subject: [PATCH] generate train and test files, generate cff, predict test's forms' classes --- maca_morpho/src/maca_morpho_context.h | 41 +++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 maca_morpho/src/maca_morpho_context.h diff --git a/maca_morpho/src/maca_morpho_context.h b/maca_morpho/src/maca_morpho_context.h new file mode 100644 index 0000000..12443f3 --- /dev/null +++ b/maca_morpho/src/maca_morpho_context.h @@ -0,0 +1,41 @@ +#ifndef __MACA_MORPHO_CONTEXT__ +#define __MACA_MORPHO_CONTEXT__ + +#include "mcd.h" +#include <stdlib.h> + +#define DEFAULT_FPLM_FILENAME "fplm" + + + +typedef struct { + int help; + int verbose; + int debug_mode; + int fplm_test_percent; + char *program_name; + char *fplm_filename; + char *language; + char *maca_data_path; + char *fm_filename; + char *features_filename; + char *cfw_filename; + char *class_name; +} context; + + + +context *context_new(void); +void context_free(context *ctx); + +context *context_read_options(int argc, char *argv[]); +void context_general_help_message(context *ctx); +void context_language_help_message(context *ctx); +void context_fplm_help_message(context *ctx); +void context_maca_data_path_help_message(context *ctx); +void context_features_filename_help_message(context *ctx); +void context_weights_matrix_filename_help_message(context *ctx); +void context_features_model_help_message(context *ctx); +void context_class_help_message(context *ctx); +void context_fplm_test_percent_help_message(context *ctx); +#endif -- GitLab