Permalink
Browse files

fix gbk sentence split bug, move training suite to tools/train

  • Loading branch information...
Oneplus committed Jul 22, 2013
1 parent 9d8997b commit 310411f82b64f1b81336ba1dd7ca1657eed63cb3
View
@@ -0,0 +1,40 @@
##############################################################
# CMake Project Wrapper Makefile #
##############################################################
SHELL := /bin/bash
RM := rm -rf
all: ./build/Makefile
@ $(MAKE) -C build
./build/Makefile:
@ (cd build >/dev/null 2>&1 && cmake ..)
distclean:
@- (cd build >/dev/null 2>&1 && cmake .. >/dev/null 2>&1)
@- $(MAKE) --silent -C build clean || true
@- $(RM) ./build/Makefile
@- $(RM) ./build/src
@- $(RM) ./build/test
@- $(RM) ./build/CMake*
@- $(RM) ./build/cmake.*
@- $(RM) ./build/*.cmake
@- $(RM) ./build/*.txt
@- $(RM) ./docs/*.html
@- $(RM) ./docs/*.css
@- $(RM) ./docs/*.png
@- $(RM) ./docs/*.jpg
@- $(RM) ./docs/*.gif
@- $(RM) ./docs/*.tiff
@- $(RM) ./docs/*.php
@- $(RM) ./docs/search
@- $(RM) ./docs/installdox
ifeq ($(findstring distclean,$(MAKECMDGOALS)),)
$(MAKECMDGOALS): ./build/Makefile
@ $(MAKE) -C build $(MAKECMDGOALS)
endif
View
@@ -153,10 +153,12 @@ int LTP::splitSentence_dummy() {
vector<string> vecSentences;
string para;
m_xml4nlp.GetParagraph(i, para);
if (0 == SplitSentence( para, vecSentences )) {
ERROR_LOG("in LTP::splitsent, failed to split sentence");
return -1;
}
// dummy
// vecSentences.push_back(para);
if (0 != m_xml4nlp.SetSentencesToParagraph(vecSentences, i)) {
Oops, something went wrong.

0 comments on commit 310411f

Please sign in to comment.