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
44d47e45
Commit
44d47e45
authored
11 years ago
by
Adam Radziszewski
Browse files
Options
Downloads
Patches
Plain Diff
Lift const from Sentence::id_ and add id setter + swig wrapper for it.
parent
86e57766
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+2
-2
2 additions, 2 deletions
CMakeLists.txt
libcorpus2/sentence.h
+6
-1
6 additions, 1 deletion
libcorpus2/sentence.h
swig/sentence.i
+2
-0
2 additions, 0 deletions
swig/sentence.i
with
10 additions
and
3 deletions
CMakeLists.txt
+
2
−
2
View file @
44d47e45
PROJECT
(
Corpus2Library
)
set
(
corpus2_ver_major
"1"
)
set
(
corpus2_ver_minor
"
3
"
)
set
(
corpus2_ver_patch
"
4
"
)
set
(
corpus2_ver_minor
"
4
"
)
set
(
corpus2_ver_patch
"
0
"
)
cmake_minimum_required
(
VERSION 2.8.0
)
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/sentence.h
+
6
−
1
View file @
44d47e45
...
...
@@ -118,12 +118,17 @@ public:
return
id_
;
}
/// Identifier setter
void
set_id
(
const
std
::
string
&
id
)
{
id_
=
id
;
}
protected
:
/// The tokens this sentence contains and owns
std
::
vector
<
Token
*>
tokens_
;
/// The sentence identifer - default is empty
const
std
::
string
id_
;
std
::
string
id_
;
};
}
/* end ns Corpus2 */
...
...
This diff is collapsed.
Click to expand it.
swig/sentence.i
+
2
−
0
View file @
44d47e45
...
...
@@ -48,6 +48,8 @@ namespace Corpus2 {
const std::string id() const;
void set_id(const std::string &id);
%extend {
static boost::shared_ptr<Corpus2::Sentence> create_sent(const std::string &id) {
return boost::shared_ptr<Corpus2::Sentence>(new Corpus2::Sentence(id));
...
...
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