/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: GPL 2.0 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License. You should have * received a copy of the GPL license along with this program; if you * did not, you can find it at http://www.gnu.org/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Coreseek.com code. * * Copyright (C) 2007-2008. All Rights Reserved. * * Author: * Li monan * * ***** END LICENSE BLOCK ***** */ #include #include #include #include #include #include #include #ifdef WIN32 #include "bsd_getopt_win.h" #else #include "bsd_getopt.h" #endif #include "UnigramCorpusReader.h" #include "UnigramDict.h" #include "SynonymsDict.h" #include "ThesaurusDict.h" #include "SegmenterManager.h" #include "Segmenter.h" #include "csr_utils.h" using namespace std; using namespace css; #define SEGMENT_OUTPUT 1 void usage(const char* argv_0) { printf("Coreseek COS(tm) MM Segment 1.0\n"); printf("Copyright By Coreseek.com All Right Reserved.\n"); printf("Usage: %s