Skip to content
Snippets Groups Projects
Commit f0d23265 authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

convenience parser ctor

parent 900d7afe
Branches
No related merge requests found
......@@ -6,6 +6,8 @@
#include <antlr/MismatchedTokenException.hpp>
#include <antlr/TokenStreamRecognitionException.hpp>
#include <libcorpus2/tagsetmanager.h>
namespace Wccl {
/**
......@@ -15,6 +17,10 @@ Parser::Parser(const Corpus2::Tagset& t) : tagset_(t)
{
}
Parser::Parser(const std::string& tagset_name) : tagset_(Corpus2::get_named_tagset(tagset_name))
{
}
/**
*
*/
......
......@@ -32,7 +32,8 @@ namespace Wccl{
class Parser {
public:
Parser(const Corpus2::Tagset&);
explicit Parser(const Corpus2::Tagset&);
explicit Parser(const std::string& tagset_name);
~Parser();
// ---------------------------------------------------------------------------
......
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