| FreeLing
    4.0
    | 
#include <output_handler.h>


| Public Member Functions | |
| output_handler () | |
| empty constructor | |
| ~output_handler () | |
| destructor | |
| virtual void | PrintHeader (std::wostream &sout) const | 
| virtual void | PrintFooter (std::wostream &sout) const | 
| virtual void | PrintResults (std::wostream &sout, const std::list< freeling::sentence > &ls) const =0 | 
| print given sentences to sout in appropriate format (no headers) | |
| virtual std::wstring | PrintResults (const std::list< freeling::sentence > &ls) const | 
| virtual void | PrintResults (std::wostream &sout, const freeling::document &doc) const =0 | 
| print given document to sout in appropriate format, including headers. | |
| virtual std::wstring | PrintResults (const freeling::document &doc) const | 
| Static Protected Member Functions | |
| static bool | ascending_position (const freeling::dep_tree::const_sibling_iterator &n1, const freeling::dep_tree::const_sibling_iterator &n2) | 
| Criteria to sort dependency children by word position. | |
| static std::wstring | escapeXML (const std::wstring &s) | 
| replace a XML reserved token with its right escape code | |
| static std::wstring | escapeJSON (const std::wstring &s) | 
| replace quotes and backslashes for JSON | |
| static std::wstring | get_token_id (const std::wstring &sid, int tk, const std::wstring &pref=L"t") | 
| static std::list < freeling::analysis > | compute_retokenization (const std::list< freeling::word > &rtk, std::list< freeling::word >::const_iterator w, const std::wstring &lem, const std::wstring &tag) | 
empty constructor
destructor
| static bool freeling::io::output_handler::ascending_position | ( | const freeling::dep_tree::const_sibling_iterator & | n1, | 
| const freeling::dep_tree::const_sibling_iterator & | n2 | ||
| ) |  [static, protected] | 
Criteria to sort dependency children by word position.
| static std::list<freeling::analysis> freeling::io::output_handler::compute_retokenization | ( | const std::list< freeling::word > & | rtk, | 
| std::list< freeling::word >::const_iterator | w, | ||
| const std::wstring & | lem, | ||
| const std::wstring & | tag | ||
| ) |  [static, protected] | 
| static std::wstring freeling::io::output_handler::escapeJSON | ( | const std::wstring & | s | ) |  [static, protected] | 
replace quotes and backslashes for JSON
| static std::wstring freeling::io::output_handler::escapeXML | ( | const std::wstring & | s | ) |  [static, protected] | 
replace a XML reserved token with its right escape code
| static std::wstring freeling::io::output_handler::get_token_id | ( | const std::wstring & | sid, | 
| int | tk, | ||
| const std::wstring & | pref = L"t" | ||
| ) |  [static, protected] | 
| virtual void freeling::io::output_handler::PrintFooter | ( | std::wostream & | sout | ) | const  [virtual] | 
Reimplemented in freeling::io::output_naf, and freeling::io::output_xml.
| virtual void freeling::io::output_handler::PrintHeader | ( | std::wostream & | sout | ) | const  [virtual] | 
Reimplemented in freeling::io::output_naf, and freeling::io::output_xml.
| virtual void freeling::io::output_handler::PrintResults | ( | std::wostream & | sout, | 
| const std::list< freeling::sentence > & | ls | ||
| ) | const  [pure virtual] | 
print given sentences to sout in appropriate format (no headers)
Implemented in freeling::io::output_naf, freeling::io::output_freeling, freeling::io::output_train, freeling::io::output_xml, freeling::io::output_conll, and freeling::io::output_json.
| virtual std::wstring freeling::io::output_handler::PrintResults | ( | const std::list< freeling::sentence > & | ls | ) | const  [virtual] | 
| virtual void freeling::io::output_handler::PrintResults | ( | std::wostream & | sout, | 
| const freeling::document & | doc | ||
| ) | const  [pure virtual] | 
print given document to sout in appropriate format, including headers.
Implemented in freeling::io::output_naf, freeling::io::output_freeling, freeling::io::output_train, freeling::io::output_xml, freeling::io::output_conll, and freeling::io::output_json.
| virtual std::wstring freeling::io::output_handler::PrintResults | ( | const freeling::document & | doc | ) | const  [virtual] | 
 1.7.6.1
 1.7.6.1