Frog
Public Member Functions | Friends | List of all members
Mwu Class Reference

#include <mwu_chunker_mod.h>

Public Member Functions

 Mwu (TiCC::LogStream *, TiCC::LogStream *)
 
 ~Mwu ()
 
void reset ()
 
bool init (const TiCC::Configuration &)
 
void add_provenance (folia::Document &, folia::processor *) const
 
void Classify (frog_data &)
 
void add (frog_record &)
 
void add_result (const frog_data &, const std::vector< folia::Word * > &) const
 
std::string getTagset () const
 return the value for mwu_tagset. (set via Configuration) More...
 
std::string version () const
 

Friends

std::ostream & operator<< (std::ostream &, const Mwu &)
 

Constructor & Destructor Documentation

◆ Mwu()

Mwu::Mwu ( TiCC::LogStream *  err_log,
TiCC::LogStream *  dbg_log 
)
explicit

create a Mwu record (UNINITIALIZED yet)

Parameters
err_logThe LogStream for errors
dbg_logThe LogStream for debugging

a call to Mwu::init() is needed to be able to use the Mwu classifier

◆ ~Mwu()

Mwu::~Mwu ( )

erase an Mwu record

Member Function Documentation

◆ add()

void Mwu::add ( frog_record fd)

add a mwuAna record to this Mwu

Parameters
fdThe 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
docthe FoLiA document to add to
mainthe 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
fdThe tagged results
wvThe folia:Word vector

◆ Classify()

void Mwu::Classify ( frog_data sent)

run the Mwu classifier on e sentence in frog_data format

Parameters
senta 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
configthe configuration to use

◆ reset()

void Mwu::reset ( )

clear an Mwu record

◆ version()

std::string Mwu::version ( ) const
inline

Friends And Related Function Documentation

◆ 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: