SortWordString.h

Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Written (W) 1999-2008 Soeren Sonnenburg
00008  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
00009  */
00010 
00011 #ifndef _CSORTWORDSTRING__H__
00012 #define _CSORTWORDSTRING__H__
00013 
00014 #include "features/StringFeatures.h"
00015 #include "preproc/StringPreProc.h"
00016 #include "lib/common.h"
00017 
00018 #include <stdio.h>
00019 
00026 class CSortWordString : public CStringPreProc<uint16_t>
00027 {
00028 public:
00030     CSortWordString();
00031     virtual ~CSortWordString();
00032 
00034     virtual bool init(CFeatures* f);
00035 
00037     virtual bool load_init_data(FILE* src);
00039     virtual bool save_init_data(FILE* dst);
00041     virtual void cleanup();
00043     virtual bool load(FILE* f);
00045     virtual bool save(FILE* f);
00046 
00050     virtual bool apply_to_string_features(CFeatures* f);
00051 
00054     virtual uint16_t* apply_to_string(uint16_t* f, int32_t &len);
00055 };
00056 #endif

SHOGUN Machine Learning Toolbox - Documentation