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
b6245edd
Commit
b6245edd
authored
13 years ago
by
Adam Radziszewski
Browse files
Options
Downloads
Patches
Plain Diff
swig shared_ptr create sent helper
parent
3f26dbad
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/sentence.i
+6
-0
6 additions, 0 deletions
swig/sentence.i
with
6 additions
and
0 deletions
swig/sentence.i
+
6
−
0
View file @
b6245edd
...
@@ -47,6 +47,12 @@ namespace Corpus2 {
...
@@ -47,6 +47,12 @@ namespace Corpus2 {
const Token* first_token() const;
const Token* first_token() const;
const std::string id() const;
const std::string id() const;
%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