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
fe2d2bd6
Commit
fe2d2bd6
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Wrapper for Corpus
parent
44c96ffe
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
swig/corpus.i
+33
-0
33 additions, 0 deletions
swig/corpus.i
swig/corpus2.i
+2
-0
2 additions, 0 deletions
swig/corpus2.i
with
35 additions
and
0 deletions
swig/corpus.i
0 → 100644
+
33
−
0
View file @
fe2d2bd6
#
ifndef
SWIG_LIBCORPUS2_CORPUS_I
#
define
SWIG_LIBCORPUS2_CORPUS_I
%
module
libcorpuscorpus
%
{
#include <libcorpus2_whole/corpus.h>
%}
%
include
"
std_defs.i
"
%
include
"
document.i
"
%
template
(
CorpusPtr
)
boost
::
shared_ptr
<
Corpus2
::
whole
::
Corpus
>
;
%
template
(
ConstCorpusPtr
)
boost
::
shared_ptr
<
const
Corpus2
::
whole
::
Corpus
>
;
namespace
Corpus2
{
namespace whole {
class Corpus {
public:
Corpus(const std::string name = "");
void add_document(boost::shared_ptr<Document> document);
boost::shared_ptr<Document> next_document();
const std::vector<boost::shared_ptr<Document> > documents() const;
};
} // whole ns
}
// Corpus2 ns
using
namespace
std
;
using
namespace
Corpus2
;
using
namespace
Corpus2
::
whole
;
#
endif
/* SWIG_LIBCORPUS2_CORPUS_I */
This diff is collapsed.
Click to expand it.
swig/corpus2.i
+
2
−
0
View file @
fe2d2bd6
...
...
@@ -27,6 +27,8 @@
%
include
"
tokenreader.i
"
%
include
"
tokenwriter.i
"
%
include
"
corpus.i
"
%
{
#include <libcorpus2/util/settings.h>
static void set_verbose(bool v) {
...
...
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