Tanl Linguistic Pipeline

Parser::GlobalInfo Struct Reference

Stores global information collected while analyzing a corpus. More...

#include <Parser.h>

List of all members.

Public Member Functions

virtual void extract (Sentence const &sentence)
 Extract global info from sentence, e.g.
void clearRareEntities ()
 Clear memory for unfrequent entities in timeLemmas and locLemmas.
void clear ()
 Clear all memory.
void save (std::ofstream &ofs)
void load (std::ifstream &ifs)

Public Attributes

WordCounts timeLemmas
WordCounts locLemmas

Static Public Attributes

static float const freqRatio = 1.5
 Determines when a lemma occurring as both a time and a location entity, occurs more frequently in one of the two categories.

Detailed Description

Stores global information collected while analyzing a corpus.


Member Function Documentation

void Parser::GlobalInfo::extract ( Sentence const &  sentence  )  [virtual]

Extract global info from sentence, e.g.

timeLemmas and locLemmas.

References Tanl::Language::hasPostpositions.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
 
Copyright © 2005-2011 G. Attardi. Generated on 4 Mar 2011 by doxygen 1.6.1.