Skip to content
Snippets Groups Projects
Commit cf8168c5 authored by ilor's avatar ilor
Browse files

wrap Parser::parseWcclFileFromPath

parent ac7436ae
No related merge requests found
...@@ -133,7 +133,19 @@ namespace Wccl { ...@@ -133,7 +133,19 @@ namespace Wccl {
const std::string& file_contents_string, const std::string& file_contents_string,
const std::string& search_path = ".") const; const std::string& search_path = ".") const;
/* --------------------------------------------------------------------- */ %exception {
try {
$action
} catch (PwrNlp::PwrNlpError &e) {
PyErr_SetString(PyExc_IndexError, e.info().c_str());
return NULL;
}
}
shared_ptr<WcclFile> parseWcclFileFromPath(
const std::string& filename,
const std::string& search_path = ".") const;
/* --------------------------------------------------------------------- */
const Corpus2::Tagset& tagset() const; const Corpus2::Tagset& tagset() const;
}; };
......
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