#include <AlpinoParser.h>
◆ AlpinoParser()
AlpinoParser::AlpinoParser |
( |
TiCC::LogStream * |
errlog, |
|
|
TiCC::LogStream * |
dbglog |
|
) |
| |
|
inlineexplicit |
◆ add_mwus()
void AlpinoParser::add_mwus |
( |
const frog_data & |
fd, |
|
|
const std::vector< folia::Word * > & |
wv |
|
) |
| const |
add the MWU's stored in a frog_data record as folia Entities
- Parameters
-
fd | the frog_data structure to use |
wv | the list of folia::Word nodes that was parsed into the fd frog_data structure |
So we create an entities layer on the Sentence above the Word vector and add all words as MWU entities in that layer
◆ add_provenance()
void AlpinoParser::add_provenance |
( |
folia::Document & |
doc, |
|
|
folia::processor * |
main |
|
) |
| const |
|
virtual |
add provenance data for the AlpinoParser to the Frog provenance
- Parameters
-
doc | the current folia::Document |
main | a pointer to the provenance processor of Frog |
Implements ParserBase.
◆ add_result()
void AlpinoParser::add_result |
( |
const frog_data & |
fd, |
|
|
const std::vector< folia::Word * > & |
wv |
|
) |
| const |
|
virtual |
add the parser information in fd as Dependencies and Entities to the FoLiA
- Parameters
-
fd | the frog_data structure with all information |
wv | the list of folia::Word nodes that was parsed into the fd frog_data structure |
Reimplemented from ParserBase.
◆ init()
bool AlpinoParser::init |
( |
const TiCC::Configuration & |
configuration | ) |
|
|
virtual |
initaliaze an AlpinoParser class from a configuration
- Parameters
-
configuration | the configuration to use |
Implements ParserBase.
◆ Parse()
parse a frog_data structure using Alpino
- Parameters
-
fd | the frog_data structure |
timers | used for storing timing information |
this function will use an Alpino Server or a locally installed Alpino executable, depending on the current options and settings.
The results are stored in the fd parameter
Implements ParserBase.
The documentation for this class was generated from the following files: