-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathExSeg.cpp
More file actions
30 lines (29 loc) · 818 Bytes
/
ExSeg.cpp
File metadata and controls
30 lines (29 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "store/IndexOutput.h"
#include "store/IndexInput.h"
#include "document/Document.h"
#include "writer/IndexWriter.h"
#include "reader/IndexReader.h"
#include "seg/Dict.h"
#include "seg/CHzSeg.h"
#include <stdio.h>
#include <string>
#include <map>
#include <iostream>
using namespace std;
CDict iDict;
int main(int argc, char* argv[]){
// CHzSeg iHzSeg;
// std::string line("中国,上海北,海北海 seg tt 333");
// iHzSeg.SegmentSentenceMM(iDict,line);
// for(std::map<std::string,int>::iterator it=iHzSeg.termMap.begin();it!=iHzSeg.termMap.end();it++){
// cout << it->first<<":" <<it->second<< endl;
// }
char buffer[20];
int i = 3445;
char temp[64];
// itoa( i, buffer, 10 );
//string s(buffer);
sprintf(temp,"%d",12);
std::string s(temp);
cout<<s<<endl;
}