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
32d4db0e
Commit
32d4db0e
authored
8 years ago
by
Alexis Nasr
Browse files
Options
Downloads
Patches
Plain Diff
modified mcd format, column index begins at 1 (used to be 0)
parent
1c1b0a6c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
maca_common/src/mcd.c
+1
-0
1 addition, 0 deletions
maca_common/src/mcd.c
with
1 addition
and
0 deletions
maca_common/src/mcd.c
+
1
−
0
View file @
32d4db0e
...
@@ -155,6 +155,7 @@ mcd *mcd_read(char *mcd_filename, int verbose)
...
@@ -155,6 +155,7 @@ mcd *mcd_read(char *mcd_filename, int verbose)
continue
;
continue
;
}
}
if
(
verbose
)
fprintf
(
stderr
,
"column = %d
\t
word feature = %s
\t
representation = %s
\t
filename = %s
\n
"
,
column
,
wf
,
representation
,
filename
);
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
[
column
]
=
mcd_wf_code
(
wf
);
m
->
wf_str
[
column
]
=
strdup
(
wf
);
m
->
wf_str
[
column
]
=
strdup
(
wf
);
if
(
m
->
wf
[
column
]
==
-
1
){
if
(
m
->
wf
[
column
]
==
-
1
){
...
...
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