#include "indri/KrovetzStemmer.hpp"
#include <cstdlib>
#include <cstring>
#include <iostream>
Namespaces | |
namespace | indri |
namespace | indri::parse |
Defines | |
#define | wordlength (k + 1) |
#define | stemlength (j + 1) |
#define | final_c (word[k]) |
#define | penult_c (word[k-1]) |
#define | ends_in(s) ends(s, (int)strlen(s)) |
#define | setsuffix(s) setsuff(s, (int)strlen(s)) |
#define | stemhash(word, hval) { unsigned short int ptr[6]; strncpy((char *)ptr, word, 12); hval = ((ptr[0]<<4)^ptr[1]^ptr[2]^ptr[3]^ptr[4]^ptr[5]) % stemhtsize; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|