FreeLing  4.0
Public Member Functions | Public Attributes
freeling::constraint_grammar Class Reference

Class constraint_grammar implements a pseudo CG, ready to be used from a relax PoS tagger. More...

#include <constraint_grammar.h>

Inheritance diagram for freeling::constraint_grammar:
Inheritance graph
[legend]
Collaboration diagram for freeling::constraint_grammar:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 constraint_grammar (const std::wstring &)
 Create a grammar loading it from a file.
void get_rules_head (const std::wstring &, std::list< ruleCG > &) const
 add to the given list all rules with a head starting with the given string

Public Attributes

bool senses_used
 flag to remember if rules affecting senses where used
std::map< std::wstring, setCGsets
 map to store -by name- all sets defined in the CG

Detailed Description

Class constraint_grammar implements a pseudo CG, ready to be used from a relax PoS tagger.


Constructor & Destructor Documentation

Create a grammar loading it from a file.


Member Function Documentation

void freeling::constraint_grammar::get_rules_head ( const std::wstring &  ,
std::list< ruleCG > &   
) const

add to the given list all rules with a head starting with the given string


Member Data Documentation

flag to remember if rules affecting senses where used

std::map<std::wstring,setCG> freeling::constraint_grammar::sets

map to store -by name- all sets defined in the CG


The documentation for this class was generated from the following file: