|
a/src/rcldb/stemdb.h |
|
b/src/rcldb/stemdb.h |
|
... |
|
... |
64 |
public:
|
64 |
public:
|
65 |
SynTermTransStem(const std::string& lang)
|
65 |
SynTermTransStem(const std::string& lang)
|
66 |
: m_stemmer(lang), m_lang(lang)
|
66 |
: m_stemmer(lang), m_lang(lang)
|
67 |
{
|
67 |
{
|
68 |
}
|
68 |
}
|
|
|
69 |
virtual ~SynTermTransStem() {}
|
69 |
virtual std::string operator()(const std::string& in)
|
70 |
virtual std::string operator()(const std::string& in)
|
70 |
{
|
71 |
{
|
71 |
string out = m_stemmer(in);
|
72 |
string out = m_stemmer(in);
|
72 |
LOGDEB2(("SynTermTransStem(%s): in [%s] out [%s]\n", m_lang.c_str(),
|
73 |
LOGDEB2(("SynTermTransStem(%s): in [%s] out [%s]\n", m_lang.c_str(),
|
73 |
in.c_str(), out.c_str()));
|
74 |
in.c_str(), out.c_str()));
|