NERsuite  1.1.1
src/nersuite/typedefs.h
00001 /*
00002  *      NERSuite
00003  *      Typedefs for Feature Extractor 
00004  *
00005  * Copyright (c) 
00006  * All rights reserved.
00007  *
00008  * Redistribution and use in source and binary forms, with or without
00009  * modification, are permitted provided that the following conditions are met:
00010  *     * Redistributions of source code must retain the above copyright
00011  *       notice, this list of conditions and the following disclaimer.
00012  *     * Redistributions in binary form must reproduce the above copyright
00013  *       notice, this list of conditions and the following disclaimer in the
00014  *       documentation and/or other materials provided with the distribution.
00015  *     * Neither the names of the authors nor the names of its contributors
00016  *       may be used to endorse or promote products derived from this
00017  *       software without specific prior written permission.
00018  *
00019  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00022  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
00023  * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00024  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00025  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00026  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00027  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00028  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030  */
00031 
00032 #ifndef _TYPEDEFS_H
00033 #define _TYPEDEFS_H
00034 
00035 #include <string>
00036 #include <vector>
00037 
00038 typedef         std::vector< std::vector<std::string> >         V2_STR;
00039 typedef         V2_STR::const_iterator                                          V2_STR_citr;
00040 
00041 namespace NER
00042 {
00050         struct COLUMN_INFO
00051         {
00055                 int BEG;
00059                 int END;
00063                 int WORD;
00067                 int LEMMA;
00071                 int POS;
00075                 int CHUNK;
00080                 int DIC;                                // The first column of dictionary(ies)
00081         };
00082 }
00083 #endif
 All Classes Functions Variables