|
Frog
|
#include "frog/Parser.h"#include <sys/types.h>#include <unistd.h>#include <cstdlib>#include <string>#include <map>#include <iostream>#include <fstream>#include <algorithm>#include "config.h"#include "ticcutils/Configuration.h"#include "ticcutils/PrettyPrint.h"#include "ticcutils/SocketBasics.h"#include "ticcutils/json.hpp"#include "timbl/TimblAPI.h"#include "frog/Frog-util.h"#include "frog/csidp.h"
Classes | |
| struct | parseData |
| structure to store parsing results More... | |
Macros | |
| #define | LOG *TiCC::Log(errLog) |
| #define | DBG *TiCC::Dbg(dbgLog) |
Functions | |
| ostream & | operator<< (ostream &os, const parseData &pd) |
| void | extract (const string &tv, string &head, string &mods) |
| vector< timbl_result > | timbl (Timbl::TimblAPI *tim, const vector< string > &instances) |
| vector< pair< string, double > > | parse_vd (const string &ds) |
| void | appendParseResult (frog_data &fd, const vector< parsrel > &res) |
| #define DBG *TiCC::Dbg(dbgLog) |
| #define LOG *TiCC::Log(errLog) |
transfer the outcome of the parser back into the fog_data structure
| fd | the frog_data we want to add to |
| res | the parser's results |
| void extract | ( | const string & | tv, |
| string & | head, | ||
| string & | mods | ||
| ) |
spit a (CGN-like) tag into a head and a modifier part
| tv | a CGN-like tag |
| head | the extacted head |
| mods | the modfiers, concatenated using the '|' symbol |
Example: the tag WW(pv,tgw,met-t) will be split into a head 'WW' and a mods string 'pv|tgw|met-t'
| ostream& operator<< | ( | ostream & | os, |
| const parseData & | pd | ||
| ) |
| vector<pair<string,double> > parse_vd | ( | const string & | ds | ) |
parse a ValueDistribution string into a vector of class/value pairs
| ds | a string representation of a Timbl ValueDistribution |
| vector<timbl_result> timbl | ( | Timbl::TimblAPI * | tim, |
| const vector< string > & | instances | ||
| ) |
call a Timbl experiment with a list of instances
1.8.17