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
9121e45b
Commit
9121e45b
authored
13 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
fix AnnotationChannel::get_iob_at missing const specifier
parent
2b8f6a60
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libcorpus2/ann/channel.cpp
+1
-1
1 addition, 1 deletion
libcorpus2/ann/channel.cpp
libcorpus2/ann/channel.h
+1
-1
1 addition, 1 deletion
libcorpus2/ann/channel.h
with
2 additions
and
2 deletions
libcorpus2/ann/channel.cpp
+
1
−
1
View file @
9121e45b
...
...
@@ -107,7 +107,7 @@ void AnnotationChannel::set_segment_at(int token_idx, int segment_idx)
}
}
IOB
::
Enum
AnnotationChannel
::
get_iob_at
(
int
idx
)
IOB
::
Enum
AnnotationChannel
::
get_iob_at
(
int
idx
)
const
{
if
(
idx
>=
0
&&
idx
<
static_cast
<
int
>
(
iobs_
.
size
()))
{
return
iobs_
[
idx
];
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/ann/channel.h
+
1
−
1
View file @
9121e45b
...
...
@@ -130,7 +130,7 @@ public:
/**
* IOB getter, returns IOB::O if idx is out of range.
*/
IOB
::
Enum
get_iob_at
(
int
idx
);
IOB
::
Enum
get_iob_at
(
int
idx
)
const
;
/**
* IOB setter, out of range indices are not processed.
...
...
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