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
766209e9
There was an error fetching the commit references. Please try again later.
Commit
766209e9
authored
13 years ago
by
Adam Radziszewski
Browse files
Options
Downloads
Patches
Plain Diff
add mask filled with 1's to use for POS masking
parent
33dc14da
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
libcorpus2/CMakeLists.txt
+1
-1
1 addition, 1 deletion
libcorpus2/CMakeLists.txt
libcorpus2/tag.h
+2
-0
2 additions, 0 deletions
libcorpus2/tag.h
libpwrutils/bitset.h
+7
-0
7 additions, 0 deletions
libpwrutils/bitset.h
with
10 additions
and
1 deletion
libcorpus2/CMakeLists.txt
+
1
−
1
View file @
766209e9
...
...
@@ -3,7 +3,7 @@ PROJECT(corpus2)
set
(
corpus2_ver_major
"1"
)
set
(
corpus2_ver_minor
"0"
)
set
(
corpus2_ver_patch
"1
0
"
)
set
(
corpus2_ver_patch
"1
1
"
)
if
(
NOT LIBCORPUS2_SRC_DATA_DIR
)
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/tag.h
+
2
−
0
View file @
766209e9
...
...
@@ -34,6 +34,8 @@ typedef boost::int8_t idx_t;
typedef
PwrNlp
::
bitset
<
64
>
mask_t
;
BOOST_STRONG_TYPEDEF
(
boost
::
uint32_t
,
tagset_idx_t
);
const
mask_t
filled_mask
(
PwrNlp
::
filled_bitset
<
64
>
());
/**
* This is an extended version of a POS tag, which also includes a number
* of attributes which may have values set.
...
...
This diff is collapsed.
Click to expand it.
libpwrutils/bitset.h
+
7
−
0
View file @
766209e9
...
...
@@ -37,6 +37,13 @@ static const size_t ulong_bits = sizeof(unsigned long) * CHAR_BIT;
typedef
bitset
<
ulong_bits
>
word_bitset
;
template
<
size_t
S
>
std
::
bitset
<
S
>
filled_bitset
()
{
std
::
bitset
<
S
>
b
=
std
::
bitset
<
S
>
();
b
.
flip
();
return
b
;
}
/**
* Count set bits in a integral type.
...
...
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