Skip to content
Snippets Groups Projects
Commit a1b3d9e3 authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

(swig) Added TagRule and TagRuleSequence to wccl library

parent 4da366b1
Branches
No related merge requests found
......@@ -49,8 +49,8 @@ namespace Wccl {
TagRule clone_clean() const;
/* --------------------------------------------------------------------- */
boost::shared_ptr<TagRule> clone_ptr() const;
boost::shared_ptr<TagRule> clone_clean_ptr() const;
shared_ptr<TagRule> clone_ptr() const;
shared_ptr<TagRule> clone_clean_ptr() const;
/* --------------------------------------------------------------------- */
%rename(OperatorEqTagRule) *::operator=(const TagRule& other);
......
......@@ -27,14 +27,14 @@ namespace Wccl {
/* --------------------------------------------------------------------- */
%rename(OpFunTagRuleSequence) operator()(
const boost::shared_ptr<Corpus2::Sentence>& sentence
const shared_ptr<Corpus2::Sentence>& sentence
);
Bool operator()(const boost::shared_ptr<Corpus2::Sentence>& sentence);
Bool operator()(const shared_ptr<Corpus2::Sentence>& sentence);
/* --------------------------------------------------------------------- */
Bool execute_once(const boost::shared_ptr<Corpus2::Sentence>& sentence);
int execute_until_done(const boost::shared_ptr<Corpus2::Sentence>& sentence, int max_iter = 1000);
Bool execute_once(const shared_ptr<Corpus2::Sentence>& sentence);
int execute_until_done(const shared_ptr<Corpus2::Sentence>& sentence, int max_iter = 1000);
std::string to_string(const Corpus2::Tagset& tagset) const;
};
......
......@@ -22,8 +22,8 @@
%include "libcclsentencecontext.i"
%include "libcclstrset.i"
%include "libccltagaction.i"
// %include "libccltagrule.i"
// %include "libccltagrulesequence.i"
%include "libccltagrule.i"
%include "libccltagrulesequence.i"
%include "libccltokenmatch.i"
%include "libccltset.i"
%include "libcclvalue.i"
......
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