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

ChineseParser Class Reference

#include <ChineseParser.hpp>

Inheritance diagram for ChineseParser:

Parser TextHandler List of all members.

Public Methods

 ChineseParser ()
void parseFile (char *filename)
 Parse a file.

void parseBuffer (char *buf, int len)
 Parse a buffer of len length.

long fileTell ()

Private Methods

void doParse ()
 Actual parsing action flow.


Private Attributes

int state
 The state of the parser.


Detailed Description

Parses segmented (tokenized) Chinese documents in NIST's TREC format, (GB encoding). The following fields are parsed: TEXT, HL, HEAD, HEADLINE, LP, TTL


Constructor & Destructor Documentation

ChineseParser::ChineseParser  
 


Member Function Documentation

void ChineseParser::doParse   [private]
 

Actual parsing action flow.

long ChineseParser::fileTell   [virtual]
 

Gives current byte position offset into file being parsed. Don't use with parseBuffer

Implements Parser.

void ChineseParser::parseBuffer char *    buf,
int    len
[virtual]
 

Parse a buffer of len length.

Implements Parser.

void ChineseParser::parseFile char *    filename [virtual]
 

Parse a file.

Implements Parser.


Member Data Documentation

int ChineseParser::state [private]
 

The state of the parser.


The documentation for this class was generated from the following file:
Generated on Fri Feb 6 07:11:58 2004 for LEMUR by doxygen1.2.16