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

📄 beyesclassifier.h

📁 一个很好的贝叶斯分类器
💻 H
字号:
# 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -