📄 segmenter.h
字号:
#ifndef SEGMENTER_H
#define SEGMENTER_H
#include <string>
#include <utility>
#include "ssps.h"
using namespace std;
typedef pair<string,int> wordpair;
class segmenter{
CSSPS* lex;
// this function search for a specified string s in the lex. it will return true if find and
//false if not.
//argument s: the string to be searched;
//string getpos(string &s);
public:
segmenter(CSSPS* ssps):lex(ssps){};
string segment(string &str,char tag1,char tag2);
void segment(string &str,vector<wordpair>& result);
string exist(string &s);
string segmenter::segment(std::string &str,char delima);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -