FreeLing
4.0
|
Class constraint_grammar implements a pseudo CG, ready to be used from a relax PoS tagger. More...
#include <constraint_grammar.h>
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, setCG > | sets |
map to store -by name- all sets defined in the CG |
Class constraint_grammar implements a pseudo CG, ready to be used from a relax PoS tagger.
freeling::constraint_grammar::constraint_grammar | ( | const std::wstring & | ) |
Create a grammar loading it from a file.
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
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