beyesclassifier.h

来自「一个很好的贝叶斯分类器」· C头文件 代码 · 共 47 行

H
47
字号
# ifndef _BC_H
# define _BC_H


#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>

#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <set>





//typedef map<string, int>::value_type sival_type;

using namespace std;

  extern vector<string> *lines_of_text;
  extern char * str;


//函数申明

void retrieve_text(string file_name);

void strip_caps( vector<string> *text_file );

vector<string> *separate_words( const vector<string> *text_file );

map< string, int > *appear_total( const vector<string> *words );

multimap< int, string, greater<int> > * multimap_total( map<string, int> *text_map );

void map_output( map<string, int> *text_map );

int file_prep();



# endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?