|
FreeLing
3.0
|
00001 00003 // 00004 // FreeLing - Open Source Language Analyzers 00005 // 00006 // Copyright (C) 2004 TALP Research Center 00007 // Universitat Politecnica de Catalunya 00008 // 00009 // This library is free software; you can redistribute it and/or 00010 // modify it under the terms of the GNU General Public 00011 // License as published by the Free Software Foundation; either 00012 // version 3 of the License, or (at your option) any later version. 00013 // 00014 // This library is distributed in the hope that it will be useful, 00015 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 // General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU General Public 00020 // License along with this library; if not, write to the Free Software 00021 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00022 // 00023 // contact: Lluis Padro (padro@lsi.upc.es) 00024 // TALP Research Center 00025 // despatx C6.212 - Campus Nord UPC 00026 // 08034 Barcelona. SPAIN 00027 // 00029 00030 00031 #ifndef _SUFFRULE 00032 #define _SUFFRULE 00033 00034 #include <boost/regex/icu.hpp> 00035 00040 00041 class sufrule { 00042 public: 00043 std::wstring term,output,retok,lema,expression; 00044 boost::u32regex cond; 00045 int acc,enc,always,nomore; 00046 00047 sufrule() { 00048 expression=L""; 00049 cond=boost::make_u32regex(L""); 00050 } 00051 sufrule(const std::wstring & c) { 00052 expression=c; 00053 cond=boost::make_u32regex(c); 00054 } 00055 sufrule(const sufrule & s) { 00056 cond=s.cond; expression=s.expression; 00057 term=s.term; output=s.output; retok=s.retok; 00058 acc=s.acc; enc=s.enc; nomore=s.nomore; 00059 lema=s.lema; always=s.always; 00060 } 00061 }; 00062 00063 #endif
1.7.6.1