Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ReutersParser.hpp

Go to the documentation of this file.
00001 /*==========================================================================
00002  * Copyright (c) 2001 Carnegie Mellon University.  All Rights Reserved.
00003  *
00004  * Use of the Lemur Toolkit for Language Modeling and Information Retrieval
00005  * is subject to the terms of the software license set forth in the LICENSE
00006  * file included with this software, and also available at
00007  * http://www.lemurproject.org/license.html
00008  *
00009  *==========================================================================
00010 */
00011 
00012 #include "Parser.hpp"
00013 #include "TextHandler.hpp"
00014 
00015 #ifndef _REUTERSPARSER_HPP
00016 #define _REUTERSPARSER_HPP
00017 
00029 
00030 // Source code in reutersparser.lex
00031 
00032 class ReutersParser : public Parser {
00033 
00034 public:
00035   static const string identifier;
00036 
00037   ReutersParser();
00038 
00040   void parseFile (const string &filename);
00041   void parseBuffer (char * buf, int len);
00042   long fileTell()const;
00043  
00044 private:
00046   void doParse();
00047 
00049   int state;
00050 
00051 };
00052 
00053 #endif

Generated on Wed Nov 3 12:59:03 2004 for Lemur Toolkit by doxygen1.2.18