⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 param.h

📁 用于汉字识别和分类的支持向量机SVMTEST测试算法,很好用啊
💻 H
字号:
/* MeCab -- Yet Another Part-of-Speech and Morphological Analyzer $Id: param.h,v 1.18 2003/01/29 18:30:46 taku-ku Exp $; Copyright (C) 2001-2002  Taku Kudo <taku-ku@is.aist-nara.ac.jp> All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later verjsion. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/#ifndef _MECAB_PARAM_H#define _MECAB_PARAM_H#pragma warning(disable: 4786)//CCR 2004.04.05#include <map>#include <string>#include <vector>#include <iostream>#define PACKAGE "yamcha" //CCR ADD#define VERSION "0.27"  //CCR ADDusing namespace std;namespace YamCha {     struct Option   {    const char *name;    char        short_name;    const char *default_value;    const char *arg_description;    const char *description;  };  class Param   {  private:    std::map  <std::string, std::string> conf;    std::vector <std::string> rest;    std::string systemName;    std::string _what;  public:    bool open    (int,  char**, const Option *);    bool open    (const char*,  const Option *);    bool load    (const char*);    void clear   ();     const std::vector <std::string>& getRestArg () { return rest; };    const char* getSystemName () { return systemName.c_str(); };    const char* what ()          { return _what.c_str(); };    void help    (std::ostream&, const Option *);    void version (std::ostream&, const Option *);    const std::string getProfileString (const char*, bool = false);    int               getProfileInt    (const char*, bool = false);    void              setProfile       (const char*, const char* value, bool = true);    void              setProfile       (const char*, int, bool = true);       Param ()  {};    ~Param () {};  };}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -