mysegprogramm.h
来自「一个的文本分割程序」· C头文件 代码 · 共 42 行
H
42 行
#include <iostream>
#include <fstream>
#include <string>
#include <map>
#include "mylist.h"
using namespace std;
class SegProgramm
{
private:
map<string,int> dictionary;
map<string,int> ftempdic;
map<string,int> rtempdic;
map<string,int> allsegdic;
public:
SegProgramm();
void constructDictionary();
string segSentenceForward(string h,int word=7);
string segSentenceReverse(string h,int word=7);
int isInDictionary(string character);
void printDictionary();
void printForwardDictionary();
void printReverseDictionary();
int getFrequenceFromDictionary(string h);
int getFrequenceFromFtempdic(string h);
int getFrequenceFromRtempdic(string h);
int judge(string str1,string str2);
void allSeg(string str,int sizeflag=5);//
void filter();//
void truth_filter();
void InitialAllsegdic(string filename);
void printAllsegDictionary();
void textToDict(string filename);
int judgeStringisWord(string str);
void initiaSeg(string str1,List &mylist);//此函数,将一句话,分为,汉字,数字,和标点,
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?