Skip to content
Snippets Groups Projects
Commit 9121e45b authored by ilor's avatar ilor
Browse files

fix AnnotationChannel::get_iob_at missing const specifier

parent 2b8f6a60
Branches
No related merge requests found
...@@ -107,7 +107,7 @@ void AnnotationChannel::set_segment_at(int token_idx, int segment_idx) ...@@ -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())) { if (idx >= 0 && idx < static_cast<int>(iobs_.size())) {
return iobs_[idx]; return iobs_[idx];
......
...@@ -130,7 +130,7 @@ public: ...@@ -130,7 +130,7 @@ public:
/** /**
* IOB getter, returns IOB::O if idx is out of range. * 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. * IOB setter, out of range indices are not processed.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment