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

BrillPOSParser Class Reference

#include <BrillPOSParser.hpp>

Inheritance diagram for BrillPOSParser:

Parser TextHandler List of all members.

Public Methods

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

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

long fileTell ()
 return the current byte position of the file being parsed


Detailed Description

Parses documents in with similar document separation tags NIST's Web format. <DOC></DOC> around documents and <DOCNO></DOCNO> around docids. recognizes tokens with "/" slashes in them, which is the default separator for Brill's part of speech tagger. Use with BrillPOSTokenizer. This parser also recognizes ./. ?/. and !/. as end of sentence markers and sends along a [eos] token to be indexed. Does case folding for words that are not in the acronym list. Contraction suffixes and possessive suffixes are stripped.

U.S.A., USA's, and USAs are converted to USA. Does not recognize acronyms with numbers.


Constructor & Destructor Documentation

BrillPOSParser::BrillPOSParser  
 


Member Function Documentation

long BrillPOSParser::fileTell   [virtual]
 

return the current byte position of the file being parsed

Implements Parser.

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

Parse a buffer.

Implements Parser.

void BrillPOSParser::parseFile char *    filename [virtual]
 

Parse a file.

Implements Parser.


The documentation for this class was generated from the following file:
Generated on Tue Nov 25 11:27:03 2003 for Lemur Toolkit by doxygen1.2.18