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
1ac9b206
Commit
1ac9b206
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Wrappers for Corpus2::TagParseError and Corpus2::TagsetMismatch
parent
1d1be46b
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/libcorpustagset.i
+31
-0
31 additions, 0 deletions
swig/libcorpustagset.i
with
31 additions
and
0 deletions
swig/libcorpustagset.i
+
31
−
0
View file @
1ac9b206
...
...
@@ -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:
...
...
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