Skip to content
Snippets Groups Projects
Select Git revision
  • 395684fca4a54fdaf65e363d8d227f867ba99c30
  • master default protected
  • johannes
  • partial_parser
  • Aloui_Dary
  • ignore_punct
  • AC
  • classifier
  • fixhelp
  • libmacaon2
  • error_predictor
  • morpho
  • ssrnn
  • tfparsing
  • silvio
  • tagger_options
  • maca_trans_frame_parser
  • alexis
  • new_config
  • tagparse
  • maca_graph_parser
21 results

context.h

Blame
  • user avatar
    Alexis Nasr authored
    395684fc
    History
    context.h 919 B
    #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;
      char *program_name;
      char *fplm_filename;
      char *language;
      char *maca_data_path;
      char *fm_filename;
      char *features_filename;
      char *cfw_filename;
    } 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);
    #endif