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

Merge branch 'master' of nlp.pwr.wroc.pl:wccl

parents 15b4f0d6 a870dcf0
Branches
No related merge requests found
...@@ -31,7 +31,7 @@ public: ...@@ -31,7 +31,7 @@ public:
/** /**
* @returns String representation of the function in the form of: * @returns String representation of the function in the form of:
* "base(pos_expr_string)" * "base(pos_expr_raw_string)"
* @note This version does not require tagset, but may be inclomplete * @note This version does not require tagset, but may be inclomplete
* and/or contain internal info. * and/or contain internal info.
*/ */
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
namespace Wccl { namespace Wccl {
/**
* Operator that gets tagset symbols from a token at given position.
*/
class GetSymbols : public Function<TSet> { class GetSymbols : public Function<TSet> {
public: public:
typedef boost::shared_ptr<Function<Position> > PosFunctionPtr; typedef boost::shared_ptr<Function<Position> > PosFunctionPtr;
...@@ -25,7 +28,7 @@ public: ...@@ -25,7 +28,7 @@ public:
/** /**
* @returns String representation of the function in the form of: * @returns String representation of the function in the form of:
* "attribute_name[pos_expr_string]" * "raw_attribute_name[pos_expr_raw_string]"
* @note This version does not require tagset, but will be inclomplete * @note This version does not require tagset, but will be inclomplete
* and/or contain internal info. * and/or contain internal info.
*/ */
......
...@@ -176,7 +176,7 @@ boost::shared_ptr<ANTLRParserResultBase> Parser::parseAnyOperator( ...@@ -176,7 +176,7 @@ boost::shared_ptr<ANTLRParserResultBase> Parser::parseAnyOperator(
ANTLRLexer lexer(ss); ANTLRLexer lexer(ss);
ANTLRParser parser(lexer); ANTLRParser parser(lexer);
try { try {
result = parser.parse_position_operator(tagset_); result = parser.parse_symset_operator(tagset_);
} catch (antlr::ANTLRException& e) { } catch (antlr::ANTLRException& e) {
errors << "(as tset) " << e.getMessage() << "\n"; errors << "(as tset) " << e.getMessage() << "\n";
// ignore, try another type // ignore, try another type
......
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