Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
78507da5
Commit
78507da5
authored
Jan 26, 2012
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Exception when one of the relation or annotation path is not given in DocumentReader.
parent
8e84f522
Branches
python3.8
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libcorpus2_whole/io/documentcorpusreader.cpp
+1
-2
1 addition, 2 deletions
libcorpus2_whole/io/documentcorpusreader.cpp
with
1 addition
and
2 deletions
libcorpus2_whole/io/documentcorpusreader.cpp
+
1
−
2
View file @
78507da5
...
@@ -35,8 +35,7 @@ boost::shared_ptr<Corpus> DocumentCorpusReader::read(const std::string& corpus_f
...
@@ -35,8 +35,7 @@ boost::shared_ptr<Corpus> DocumentCorpusReader::read(const std::string& corpus_f
continue
;
continue
;
}
}
else
if
(
splitted_line
.
size
()
==
1
)
{
else
if
(
splitted_line
.
size
()
==
1
)
{
// maybe exception?
throw
Corpus2Error
(
"DocumentReader requires both paths to relations and annotations"
);
continue
;
}
}
ann_path
=
splitted_line
[
0
];
ann_path
=
splitted_line
[
0
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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