init demo and add jieba.dict.gbk

This commit is contained in:
gwdwyy 2013-08-02 21:06:39 +08:00
parent ade85484f6
commit d15c7dd75c
3 changed files with 348986 additions and 8 deletions

View File

@ -2,7 +2,7 @@ CXX := g++
LD := g++
AR := ar rc
INCS := -I. -I./cppcommon
INCS :=
DEBUG_CXXFLAGS := -g -Wall -DDEBUG
RELEASE_CXXFLAGS := -Wall -O3
@ -20,7 +20,7 @@ DOPACK := $(AR)
SOURCES := $(wildcard *.cpp)
OBJS := $(patsubst %.cpp,%.o,$(SOURCES))
SRCDIR = ./src
SRCDIR = ../src
SRCLIB = $(SRCDIR)/libcppjieba.a
# remove the objs after compilation

View File

@ -1,10 +1,6 @@
#include <iostream>
#include <fstream>
#include "src/KeyWordExt.h"
#include "src/cppcommon/str_functs.h"
#include "src/cppcommon/vec_functs.h"
using namespace std;
#include "../src/headers.h"
using namespace CppJieba;
@ -18,7 +14,7 @@ int main(int argc, char ** argv)
KeyWordExt ext;
ext.init();
if(!ext.loadSegDict("./dicts/segdict.gbk.v3.0"))
if(!ext.loadSegDict("../dicts/jieba.dict.utf8"))
{
cerr<<"1"<<endl;
return 1;

348982
dicts/jieba.dict.gbk Normal file

File diff suppressed because it is too large Load Diff