Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexis Nasr
macaon2
Commits
32d4db0e
Commit
32d4db0e
authored
Oct 03, 2016
by
Alexis Nasr
Browse files
modified mcd format, column index begins at 1 (used to be 0)
parent
1c1b0a6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
maca_common/src/mcd.c
View file @
32d4db0e
...
...
@@ -155,6 +155,7 @@ mcd *mcd_read(char *mcd_filename, int verbose)
continue
;
}
if
(
verbose
)
fprintf
(
stderr
,
"column = %d
\t
word feature = %s
\t
representation = %s
\t
filename = %s
\n
"
,
column
,
wf
,
representation
,
filename
);
column
--
;
/* in the mcd file, columns begin at index 1, in internal representation, columns begin at index 0 */
m
->
wf
[
column
]
=
mcd_wf_code
(
wf
);
m
->
wf_str
[
column
]
=
strdup
(
wf
);
if
(
m
->
wf
[
column
]
==
-
1
){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment