Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
053aac6c
Commit
053aac6c
authored
13 years ago
by
Adam Radziszewski
Browse files
Options
Downloads
Patches
Plain Diff
fixed Tagset::split_tag
parent
d5624615
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-1
1 addition, 1 deletion
CMakeLists.txt
libcorpus2/tagset.cpp
+12
-4
12 additions, 4 deletions
libcorpus2/tagset.cpp
with
13 additions
and
5 deletions
CMakeLists.txt
+
1
−
1
View file @
053aac6c
...
...
@@ -2,7 +2,7 @@ PROJECT(Corpus2Library)
set
(
corpus2_ver_major
"1"
)
set
(
corpus2_ver_minor
"0"
)
set
(
corpus2_ver_patch
"1
2
"
)
set
(
corpus2_ver_patch
"1
3
"
)
cmake_minimum_required
(
VERSION 2.8.0
)
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/tagset.cpp
+
12
−
4
View file @
053aac6c
...
...
@@ -557,12 +557,20 @@ std::vector<Tag> Tagset::split_tag(const Tag& tag) const
if
((
v
&
vm
).
any
())
{
if
(
dup
)
{
for
(
size_t
i
=
0
;
i
<
sz
;
++
i
)
{
tags
.
push_back
(
tags
[
i
]);
Tag
new_tag
=
tags
[
i
];
mask_t
new_vals
=
new_tag
.
get_values
();
new_vals
&=
~
ma
;
// clear whole attr
new_vals
^=
vm
;
// add just the new value
// tags[i].add_values(vm);
new_tag
.
set_values
(
new_vals
);
tags
.
push_back
(
new_tag
);
}
}
dup
=
true
;
for
(
size_t
i
=
0
;
i
<
sz
;
++
i
)
{
tags
[
i
].
add_values
(
vm
);
else
{
dup
=
true
;
for
(
size_t
i
=
0
;
i
<
sz
;
++
i
)
{
tags
[
i
].
add_values
(
vm
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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