Tanl Linguistic Pipeline |
Stores global information collected while analyzing a corpus. More...
#include <Parser.h>
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. |
Stores global information collected while analyzing a corpus.
void Parser::GlobalInfo::extract | ( | Sentence const & | sentence | ) | [virtual] |
Extract global info from sentence, e.g.
timeLemmas
and locLemmas
.
References Tanl::Language::hasPostpositions.