Skip to content
Snippets Groups Projects
Commit 77550dc6 authored by Alexis Nasr's avatar Alexis Nasr
Browse files

modified name of rule based lemmatizer, it is now called maca_trans_lemmatizer

parent 4e9daef8
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,7 @@ include_directories(perceptron/lib/include) ...@@ -35,7 +35,7 @@ include_directories(perceptron/lib/include)
add_subdirectory(maca_common) add_subdirectory(maca_common)
add_subdirectory(maca_tools) add_subdirectory(maca_tools)
add_subdirectory(perceptron) add_subdirectory(perceptron)
#add_subdirectory(maca_lemmatizer) add_subdirectory(maca_lemmatizer)
#add_subdirectory(maca_morpho) #add_subdirectory(maca_morpho)
add_subdirectory(maca_tokenizer) add_subdirectory(maca_tokenizer)
add_subdirectory(maca_lexer) add_subdirectory(maca_lexer)
......
...@@ -68,7 +68,7 @@ char **read_fplm_file(char *fplm_filename, hash *form_pos_ht, int debug_mode) ...@@ -68,7 +68,7 @@ char **read_fplm_file(char *fplm_filename, hash *form_pos_ht, int debug_mode)
if(num >= lemma_array_size){ if(num >= lemma_array_size){
lemma_array_size = 2 * (lemma_array_size) + 1; 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) */ /* if(lemma_array[num] == NULL) */
...@@ -78,14 +78,15 @@ char **read_fplm_file(char *fplm_filename, hash *form_pos_ht, int debug_mode) ...@@ -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); */ /* fprintf(stderr, "%d entries loaded\n", num); */
return lemma_array; return lemma_array;
} }
/*
char *to_lower_string(char *s) char *to_lower_string(char *s)
{ {
int i; unsigned int i;
for(i=0; i < strlen(s); i++) for(i=0; i < strlen(s); i++)
s[i] = tolower(s[i]); s[i] = tolower(s[i]);
return s; return s;
} }
*/
/* /*
void print_word(char *input, mcd *mcd_struct, char *lemma) void print_word(char *input, mcd *mcd_struct, char *lemma)
{ {
...@@ -225,8 +226,8 @@ int main(int argc, char *argv[]) ...@@ -225,8 +226,8 @@ int main(int argc, char *argv[])
/* print_word(buffer, ctx->mcd_struct, lemma); */ /* 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); printf("\t%s\n", lemma);
if(pos)free(pos); if(pos)free(pos);
......
...@@ -184,11 +184,11 @@ target_link_libraries(maca_trans_interpreter transparse) ...@@ -184,11 +184,11 @@ target_link_libraries(maca_trans_interpreter transparse)
target_link_libraries(maca_trans_interpreter maca_common) target_link_libraries(maca_trans_interpreter maca_common)
install (TARGETS maca_trans_interpreter DESTINATION bin) install (TARGETS maca_trans_interpreter DESTINATION bin)
add_executable(maca_lemmatizer ./src/maca_trans_lemmatizer.c) add_executable(maca_trans_lemmatizer ./src/maca_trans_lemmatizer.c)
target_compile_options(maca_lemmatizer INTERFACE -Wall) target_compile_options(maca_trans_lemmatizer INTERFACE -Wall)
target_link_libraries(maca_lemmatizer transparse) target_link_libraries(maca_trans_lemmatizer transparse)
target_link_libraries(maca_lemmatizer maca_common) target_link_libraries(maca_trans_lemmatizer maca_common)
install (TARGETS maca_lemmatizer DESTINATION bin) install (TARGETS maca_trans_lemmatizer DESTINATION bin)
#add_executable(test_w2v ./src/test_w2v.c) #add_executable(test_w2v ./src/test_w2v.c)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment