Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

KrovetzStemmer.cpp File Reference

#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; }

Define Documentation

#define ends_in  )     ends(s, (int)strlen(s))
 

#define final_c   (word[k])
 

#define penult_c   (word[k-1])
 

#define setsuffix  )     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; }
 

#define stemlength   (j + 1)
 

#define wordlength   (k + 1)
 


Generated on Tue Jun 15 11:02:57 2010 for Lemur by doxygen 1.3.4