extractor.h
来自「中文邮件过滤。对训练邮件分词训练贝叶斯模型。然后对测试邮件分类」· C头文件 代码 · 共 34 行
H
34 行
#define HAMDIR "samples\\ham\\"
#define SPAMDIR "samples\\spam\\"
typedef struct Feature
{
char word[18];
int tf;
Feature *next;
}Feature;
typedef struct dict
{
char str[18];
int len;
dict *next;
}dict;
typedef struct Document
{
int ID;
int c;
Feature *feature[4000];
}Document;
/*
typedef Feature ;
typedef dict ;
typedef Document ;
*/
void readDict();
int getIndex(char wordh,char wordl);
void statisticHam();
void statisticSpam();
void phaseSta();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?