NERsuite
1.1.1
|
00001 // 00002 // 00003 // 00004 00005 00006 #ifndef _H_IOB2_TO_IOBES_ 00007 #define _H_IOB2_TO_IOBES_ 00008 00009 00010 using namespace std; 00011 00012 #include <string> 00013 #include <vector> 00014 00015 00016 class SEG_REP_CHANGER { 00017 private: 00018 typedef vector< string > V1_STR; 00019 typedef vector< V1_STR > V2_STR; 00020 00021 public: 00022 // To a finer-grained rep. 00023 bool IOB2_to_IOBES( V2_STR &sent, int NE_COL ); // Change the IOB2 representation to the IOBES 00024 00025 // To a coarser-grained rep. 00026 bool IOBES_to_IOB2( V2_STR &sent, int NE_COL ); // Change the IOBES representation to the IOB2 00027 00028 }; 00029 00030 00031 #endif 00032 00033