5 #define SNOWBALL_RUNTIME_THROW_EXCEPTIONS
36 std::string
operator()(
const std::string& word)
override {
38 const symbol* s =
reinterpret_cast<const symbol*
>(word.data());
42 return std::string(
reinterpret_cast<const char*
>(z->
p),
SIZE(z->
p));
std::string operator()(const std::string &word) override
Stem the specified word.
std::string get_description() const override
Return a string describing this object.
static int stem(struct SN_env *z)
bool use_proper_noun_heuristic() const override
Should QueryParser suppress stemming for capitalised words?
Class representing a stemming algorithm implementation.
SNOWBALL_ERR replace_s(struct SN_env *z, int c_bra, int c_ket, int s_size, const symbol *s)