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

📄 mysegprogramm.h

📁 一个的文本分割程序
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -