Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexis Nasr
macaon2
Commits
77550dc6
Commit
77550dc6
authored
7 years ago
by
Alexis Nasr
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
maca_lemmatizer/src/maca_lemmatizer.c
+6
-5
6 additions, 5 deletions
maca_lemmatizer/src/maca_lemmatizer.c
maca_trans_parser/CMakeLists.txt
+5
-5
5 additions, 5 deletions
maca_trans_parser/CMakeLists.txt
with
12 additions
and
11 deletions
CMakeLists.txt
+
1
−
1
View file @
77550dc6
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
maca_lemmatizer/src/maca_lemmatizer.c
+
6
−
5
View file @
77550dc6
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
maca_trans_parser/CMakeLists.txt
+
5
−
5
View file @
77550dc6
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment