NERsuite
1.1.1
|
00001 /* 00002 * $Id: common.h,v 1.1.1.1 2010/12/17 07:27:40 hccho Exp $ 00003 */ 00004 00005 #ifndef __POSTAGGER_COMMON_H_ 00006 #define __POSTAGGER_COMMON_H_ 00007 00008 #include <string> 00009 #include <vector> 00010 00011 struct Token 00012 { 00013 std::string str; 00014 std::string pos; 00015 std::string prd; 00016 std::string cprd;// for chunking 00017 std::string tag; // for chunking 00018 std::string ne; 00019 Token(std::string s, std::string p) : str(s), pos(p) {} 00020 }; 00021 00022 typedef std::vector<Token> Sentence; 00023 00024 00025 #endif 00026 00027 /* 00028 * $Log: common.h,v $ 00029 * Revision 1.1.1.1 2010/12/17 07:27:40 hccho 00030 * 00031 * 00032 * Revision 1.1 2004/12/21 13:54:45 tsuruoka 00033 * add bidir.cpp 00034 * 00035 */