NERsuite  1.1.1
src/correct_mp/mp_corrector/mp_corrector.h
00001 //
00002 //
00003 //
00004 
00005 
00006 #ifndef _H_MISMATCHED_PARENTHESES_CORRECTOR_
00007 #define _H_MISMATCHED_PARENTHESES_CORRECTOR_
00008 
00009 
00010 using namespace std;
00011 
00012 #include <string>
00013 #include <vector>
00014 
00015 
00016 // Correct NEs having mismatched parentheses in a given sentence
00017 class MP_CORRECTOR {
00018 private:
00019         typedef         vector< string >        V1_STR;
00020         typedef         vector< V1_STR >        V2_STR;
00021         
00022         int validate_to_remove( const V2_STR::iterator beg, const V2_STR::iterator end, int TOK_COL, int NE_COL );
00023 
00024 public:
00025         int remove_mismatches(V2_STR &sent, int TOK_COL, int NE_COL);
00026         
00027         //TODO: implement different types of handling functions
00028         // extend_mismatch();
00029         // split_mismatch();    
00030 };
00031 
00032 
00033 #endif 
00034 
00035 
 All Classes Functions Variables