⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 extractor.h

📁 中文邮件过滤。对训练邮件分词训练贝叶斯模型。然后对测试邮件分类
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -