From 77550dc6b48bd0b0f22030d80164bb5181181c98 Mon Sep 17 00:00:00 2001
From: Alexis Nasr <alexis.nasr@lif.univ-mrs.fr>
Date: Thu, 27 Jul 2017 14:51:43 +0200
Subject: [PATCH] modified name of rule based lemmatizer, it is now called
 maca_trans_lemmatizer

---
 CMakeLists.txt                        |  2 +-
 maca_lemmatizer/src/maca_lemmatizer.c | 11 ++++++-----
 maca_trans_parser/CMakeLists.txt      | 10 +++++-----
 3 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d3313d3..c53a8c1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,7 +35,7 @@ include_directories(perceptron/lib/include)
 add_subdirectory(maca_common)
 add_subdirectory(maca_tools)
 add_subdirectory(perceptron)
-#add_subdirectory(maca_lemmatizer)
+add_subdirectory(maca_lemmatizer)
 #add_subdirectory(maca_morpho)
 add_subdirectory(maca_tokenizer)
 add_subdirectory(maca_lexer)
diff --git a/maca_lemmatizer/src/maca_lemmatizer.c b/maca_lemmatizer/src/maca_lemmatizer.c
index e8aeecd..d030108 100644
--- a/maca_lemmatizer/src/maca_lemmatizer.c
+++ b/maca_lemmatizer/src/maca_lemmatizer.c
@@ -68,7 +68,7 @@ char **read_fplm_file(char *fplm_filename, hash *form_pos_ht, int debug_mode)
 
     if(num >= lemma_array_size){
       lemma_array_size = 2 * (lemma_array_size) + 1;
-      lemma_array = realloc(lemma_array, (lemma_array_size) * sizeof(char *));
+      lemma_array = (char **)realloc(lemma_array, (lemma_array_size) * sizeof(char *));
     }
 
     /* if(lemma_array[num] == NULL) */
@@ -78,14 +78,15 @@ char **read_fplm_file(char *fplm_filename, hash *form_pos_ht, int debug_mode)
   /* fprintf(stderr, "%d entries loaded\n", num); */
   return lemma_array;
 }
-
+/*
 char *to_lower_string(char *s)
 {
-  int i;
+  unsigned int i;
   for(i=0; i < strlen(s); i++)
     s[i] = tolower(s[i]);
   return s;
 }
+*/
 /*
 void print_word(char *input, mcd *mcd_struct, char *lemma)
 {
@@ -225,8 +226,8 @@ int main(int argc, char *argv[])
     
     /* print_word(buffer, ctx->mcd_struct, lemma); */
 
-    printf("form = %s pos = %s (%s) feats = %s lemma = %s\n", form, pos, form_pos, feats, lemma); 
-    printf("form = %s pos = %s (%s) feats = %s lemma = %s\n", form, pos, form_pos, feats, lemma); 
+    /*    printf("form = %s pos = %s (%s) feats = %s lemma = %s\n", form, pos, form_pos, feats, lemma); 
+	  printf("form = %s pos = %s (%s) feats = %s lemma = %s\n", form, pos, form_pos, feats, lemma); */
     printf("\t%s\n", lemma);
     
     if(pos)free(pos);
diff --git a/maca_trans_parser/CMakeLists.txt b/maca_trans_parser/CMakeLists.txt
index 20cdbc5..169c3e8 100644
--- a/maca_trans_parser/CMakeLists.txt
+++ b/maca_trans_parser/CMakeLists.txt
@@ -184,11 +184,11 @@ target_link_libraries(maca_trans_interpreter transparse)
 target_link_libraries(maca_trans_interpreter maca_common)
 install (TARGETS maca_trans_interpreter DESTINATION bin)
 
-add_executable(maca_lemmatizer ./src/maca_trans_lemmatizer.c)
-target_compile_options(maca_lemmatizer INTERFACE -Wall)
-target_link_libraries(maca_lemmatizer transparse)
-target_link_libraries(maca_lemmatizer maca_common)
-install (TARGETS maca_lemmatizer DESTINATION bin)
+add_executable(maca_trans_lemmatizer ./src/maca_trans_lemmatizer.c)
+target_compile_options(maca_trans_lemmatizer INTERFACE -Wall)
+target_link_libraries(maca_trans_lemmatizer transparse)
+target_link_libraries(maca_trans_lemmatizer maca_common)
+install (TARGETS maca_trans_lemmatizer DESTINATION bin)
 
 
 #add_executable(test_w2v ./src/test_w2v.c)
-- 
GitLab