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
f7cb9230
Commit
f7cb9230
authored
13 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
convenience wrapper function: create a writer writing on stdout
parent
6449be33
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/tokenwriter.i
+13
-0
13 additions, 0 deletions
swig/tokenwriter.i
with
13 additions
and
0 deletions
swig/tokenwriter.i
+
13
−
0
View file @
f7cb9230
...
...
@@ -69,6 +69,19 @@ namespace Corpus2 {
};
%extend TokenWriter {
%exception {
try {
$action
} catch (PwrNlp::PwrNlpError &e) {
PyErr_SetString(PyExc_IndexError, e.info().c_str());
return NULL;
}
}
%feature("autodoc", "1");
static TokenWriterPtr create_stdout_writer(
const std::string& class_id_params, const Tagset& tagset) {
return Corpus2::TokenWriter::create_stream_writer(class_id_params, std::cout, tagset);
}
void write_token(boost::shared_ptr<Corpus2::Token> t) {
self->write_token(*t);
...
...
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