aboutsummaryrefslogtreecommitdiffstats
path: root/src/tokenizers/osb.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2008-12-02 19:58:28 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2008-12-02 19:58:28 +0300
commitd62fb36650acfd0863c32a78b0941a4c0d0e58b1 (patch)
tree1ea3b31a0f274a040a512523c24b493b63126165 /src/tokenizers/osb.c
parent9a1ba2296dd152c8eb7d19a70de51721be836baa (diff)
downloadrspamd-d62fb36650acfd0863c32a78b0941a4c0d0e58b1.tar.gz
rspamd-d62fb36650acfd0863c32a78b0941a4c0d0e58b1.zip
* Add learning interface to rspamd (still requires classifier to work)
Diffstat (limited to 'src/tokenizers/osb.c')
-rw-r--r--src/tokenizers/osb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenizers/osb.c b/src/tokenizers/osb.c
index f78e20992..6799a121b 100644
--- a/src/tokenizers/osb.c
+++ b/src/tokenizers/osb.c
@@ -21,7 +21,7 @@ static const int primes[] = {
};
token_list_t *
-osb_tokenize_text (memory_pool_t *pool, f_str_t *input)
+osb_tokenize_text (struct tokenizer *tokenizer, memory_pool_t *pool, f_str_t *input)
{
token_list_t *new = NULL, *head = NULL, *last = NULL;
f_str_t token = { NULL, 0, 0 };
@@ -33,7 +33,7 @@ osb_tokenize_text (memory_pool_t *pool, f_str_t *input)
hashpipe[i] = 0xABCDEF;
}
- while (get_next_word (input, &token)) {
+ while (tokenizer->get_next_word (input, &token)) {
/* Shift hashpipe */
for (i = FEATURE_WINDOW_SIZE - 1; i > 0; i --) {
hashpipe[i] = hashpipe[i - 1];