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

use corpus2::Tag::all_pos_mask instead of low-level routines

parent b1472aff
No related merge requests found
...@@ -4,7 +4,7 @@ PROJECT(wccl) ...@@ -4,7 +4,7 @@ PROJECT(wccl)
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/include/ ) include_directories( ${CMAKE_CURRENT_BINARY_DIR}/include/ )
find_package(Corpus2 1.0.11 REQUIRED) find_package(Corpus2 1.0.12 REQUIRED)
set(LIBS ${LIBS} ${Corpus2_LIBRARIES}) set(LIBS ${LIBS} ${Corpus2_LIBRARIES})
find_package(PwrUtils 1.0.1 REQUIRED) find_package(PwrUtils 1.0.1 REQUIRED)
......
...@@ -14,7 +14,7 @@ public: ...@@ -14,7 +14,7 @@ public:
typedef boost::shared_ptr<Function<Position> > PosFunctionPtr; typedef boost::shared_ptr<Function<Position> > PosFunctionPtr;
GetWordClass(const PosFunctionPtr& pos_expr) GetWordClass(const PosFunctionPtr& pos_expr)
: GetSymbols(Corpus2::Tag(Corpus2::filled_mask), pos_expr) : GetSymbols(Corpus2::Tag::all_pos_mask, pos_expr)
{ {
} }
......
...@@ -859,7 +859,7 @@ symset_range ...@@ -859,7 +859,7 @@ symset_range
p2 = position_operator [scope] p2 = position_operator [scope]
RPAREN { RPAREN {
if (tag_class) { if (tag_class) {
ret.reset(new GetSymbolsInRange(Corpus2::Tag(Corpus2::filled_mask), p1, p2)); ret.reset(new GetSymbolsInRange(Corpus2::Tag::all_pos_mask, p1, p2));
} }
else { else {
ret.reset(new GetSymbolsInRange(tset->get_value(), p1, p2)); ret.reset(new GetSymbolsInRange(tset->get_value(), p1, p2));
......
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