FreeLing
4.0
|
#include <output_conll.h>
Public Member Functions | |
output_conll () | |
output_conll (const std::wstring &cfgFile) | |
~output_conll () | |
void | PrintResults (std::wostream &sout, const std::list< freeling::sentence > &ls) const |
print given sentences to sout in appropriate format | |
void | PrintResults (std::wostream &sout, const freeling::document &doc) const |
print given a document to sout in appropriate format | |
Private Member Functions | |
std::wstring | compute_value (const freeling::sentence &s, const freeling::word &w, const std::wstring &field, const std::vector< std::wstring > &openchunk, const std::vector< std::wstring > &closechunk, const std::map< std::wstring, std::wstring > &openmention, const std::map< std::wstring, std::wstring > &closemention) const |
void | freeling2conll (const freeling::sentence &s, conll_sentence &cs, const std::map< std::wstring, std::wstring > &openmention=std::map< std::wstring, std::wstring >(), const std::map< std::wstring, std::wstring > &closemention=std::map< std::wstring, std::wstring >()) const |
Fill conll_sentence from freeling::sentence. | |
Static Private Member Functions | |
static void | add_srl (std::vector< std::wstring > &token, const freeling::sentence &s, int id) |
static void | openclosechunks (freeling::parse_tree::const_iterator n, std::vector< std::wstring > &open, std::vector< std::wstring > &close) |
static void | openclosementions (const freeling::document &doc, std::map< std::wstring, std::wstring > &open, std::map< std::wstring, std::wstring > &close) |
static void | add_mention_oc (std::map< std::wstring, std::wstring > &table, const std::wstring &key, const std::wstring &value) |
freeling::io::output_conll::output_conll | ( | const std::wstring & | cfgFile | ) |
static void freeling::io::output_conll::add_mention_oc | ( | std::map< std::wstring, std::wstring > & | table, |
const std::wstring & | key, | ||
const std::wstring & | value | ||
) | [static, private] |
static void freeling::io::output_conll::add_srl | ( | std::vector< std::wstring > & | token, |
const freeling::sentence & | s, | ||
int | id | ||
) | [static, private] |
std::wstring freeling::io::output_conll::compute_value | ( | const freeling::sentence & | s, |
const freeling::word & | w, | ||
const std::wstring & | field, | ||
const std::vector< std::wstring > & | openchunk, | ||
const std::vector< std::wstring > & | closechunk, | ||
const std::map< std::wstring, std::wstring > & | openmention, | ||
const std::map< std::wstring, std::wstring > & | closemention | ||
) | const [private] |
void freeling::io::output_conll::freeling2conll | ( | const freeling::sentence & | s, |
conll_sentence & | cs, | ||
const std::map< std::wstring, std::wstring > & | openmention = std::map< std::wstring, std::wstring >() , |
||
const std::map< std::wstring, std::wstring > & | closemention = std::map< std::wstring, std::wstring >() |
||
) | const [private] |
Fill conll_sentence from freeling::sentence.
static void freeling::io::output_conll::openclosechunks | ( | freeling::parse_tree::const_iterator | n, |
std::vector< std::wstring > & | open, | ||
std::vector< std::wstring > & | close | ||
) | [static, private] |
static void freeling::io::output_conll::openclosementions | ( | const freeling::document & | doc, |
std::map< std::wstring, std::wstring > & | open, | ||
std::map< std::wstring, std::wstring > & | close | ||
) | [static, private] |
void freeling::io::output_conll::PrintResults | ( | std::wostream & | sout, |
const std::list< freeling::sentence > & | ls | ||
) | const [virtual] |
print given sentences to sout in appropriate format
Implements freeling::io::output_handler.
void freeling::io::output_conll::PrintResults | ( | std::wostream & | sout, |
const freeling::document & | doc | ||
) | const [virtual] |
print given a document to sout in appropriate format
Implements freeling::io::output_handler.