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

Wrappers for Corpus2::TagParseError and Corpus2::TagsetMismatch

parent 1d1be46b
Branches
No related merge requests found
......@@ -7,6 +7,7 @@
%}
%include "libcorpustag.i"
%include "libcorpus2exception.i"
%include "std_string.i"
%include "std_vector.i"
......@@ -17,6 +18,36 @@
%template(StdStringVector) std::vector<std::string>;
namespace Corpus2 {
class Tagset;
class TagParseError : public Corpus2Error {
public:
TagParseError(const std::string &what, const std::string& val,
const std::string& tag, const std::string& tagset);
~TagParseError() throw() {}
/* --------------------------------------------------------------------- */
std::string info() const;
std::string val, tag, tagset;
}; // TagParseError
class TagsetMismatch : public Corpus2Error {
public:
TagsetMismatch(const std::string& where, const Tagset& expected,
const Tagset& actual);
// TagsetMismatch(const std::string& where, tagset_idx_t expected,
// tagset_idx_t actual);
~TagsetMismatch() throw() {}
/* --------------------------------------------------------------------- */
std::string info() const;
/* --------------------------------------------------------------------- */
// tagset_idx_t expected_id, actual_id;
}; // TagsetMismatch
class Tagset {
public:
......
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