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

fix bug with masking POS under non-64-bit boxes

parent 0cbbc552
Branches
No related merge requests found
......@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 2.8.0)
set(ver_major "0")
set(ver_minor "0")
set(ver_patch "3")
set(ver_patch "4")
# use some of our own Find* scripts
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMakeScripts)
......
......@@ -4,7 +4,7 @@ PROJECT(wccl)
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/include/ )
find_package(Corpus2 1.0.9 REQUIRED)
find_package(Corpus2 1.0.11 REQUIRED)
set(LIBS ${LIBS} ${Corpus2_LIBRARIES})
find_package(PwrUtils 1.0.1 REQUIRED)
......
......@@ -14,7 +14,7 @@ public:
typedef boost::shared_ptr<Function<Position> > PosFunctionPtr;
GetWordClass(const PosFunctionPtr& pos_expr)
: GetSymbols(Corpus2::Tag(-1), pos_expr)
: GetSymbols(Corpus2::Tag(Corpus2::filled_mask), pos_expr)
{
}
......
......@@ -859,7 +859,7 @@ symset_range
p2 = position_operator [scope]
RPAREN {
if (tag_class) {
ret.reset(new GetSymbolsInRange(Corpus2::Tag(-1), p1, p2));
ret.reset(new GetSymbolsInRange(Corpus2::Tag(Corpus2::filled_mask), p1, p2));
}
else {
ret.reset(new GetSymbolsInRange(tset->get_value(), p1, p2));
......
......@@ -44,7 +44,7 @@ struct SymbolsFix : public Wccl::PositionFixture
gnd = tagset.parse_symbol("gnd");
nmb = tagset.parse_symbol("nmb");
vcl = tagset.parse_symbol("vcl");
tag_pos.set_pos(-1); //todo
tag_pos.set_pos(Corpus2::filled_mask);
}
boost::shared_ptr<Corpus2::Sentence> s;
......
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