#include <mwu_chunker_mod.h>
◆ Mwu()
Mwu::Mwu |
( |
TiCC::LogStream * |
err_log, |
|
|
TiCC::LogStream * |
dbg_log |
|
) |
| |
|
explicit |
create a Mwu record (UNINITIALIZED yet)
- Parameters
-
err_log | The LogStream for errors |
dbg_log | The LogStream for debugging |
a call to Mwu::init() is needed to be able to use the Mwu classifier
◆ ~Mwu()
◆ add()
add a mwuAna record to this Mwu
- Parameters
-
fd | The frog_data structure with the information to use |
◆ add_provenance()
void Mwu::add_provenance |
( |
folia::Document & |
doc, |
|
|
folia::processor * |
main |
|
) |
| const |
add provenance information for the tokenizer. (FoLiA output only)
- Parameters
-
doc | the FoLiA document to add to |
main | the processor to use (presumably the Frog processor) |
◆ add_result()
void Mwu::add_result |
( |
const frog_data & |
fd, |
|
|
const std::vector< folia::Word * > & |
wv |
|
) |
| const |
add the mwu's in fd as Entities to the parent of the wv list of Word
- Parameters
-
fd | The tagged results |
wv | The folia:Word vector |
◆ Classify()
run the Mwu classifier on e sentence in frog_data format
- Parameters
-
sent | a frog_data structure with unresolved MWU's |
◆ getTagset()
std::string Mwu::getTagset |
( |
| ) |
const |
|
inline |
return the value for mwu_tagset. (set via Configuration)
◆ init()
bool Mwu::init |
( |
const TiCC::Configuration & |
config | ) |
|
initialize the Mwu using a Configuration structure
- Parameters
-
config | the configuration to use |
◆ reset()
◆ version()
std::string Mwu::version |
( |
| ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Mwu & |
mwu |
|
) |
| |
|
friend |
output an Mwu (debugging only)
The documentation for this class was generated from the following files: