LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
deeplima::dumper Namespace Reference

Classes

struct  ConllToken
class  AbstractDumper
class  Horizontal
class  TokensToConllU
class  DumperBase
class  AnalysisToConllU

Functions

std::ostream & operator<< (std::ostream &oss, const ConllToken &token)
std::string conllu_field (const char *s)
 A CoNLL-U field with its tabs and line breaks turned into spaces.
template<typename T>
std::ostream & operator<< (std::ostream &out, const std::vector< T > &v)
bool dfs (int v, std::vector< uint32_t > &heads, std::vector< int > &color, uint32_t &cycle_start, uint32_t &cycle_end)
bool find_cycle (std::vector< uint32_t > &heads, uint32_t root)

Function Documentation

◆ conllu_field()

std::string deeplima::dumper::conllu_field ( const char * s)
inline

A CoNLL-U field with its tabs and line breaks turned into spaces.

A token may span a line break of the raw text ("100\n000"), and a lemma copied from its form (NUM, PROPN...) then broke the line in two.

Definition at line 81 of file dumper_conllu.h.

◆ dfs()

bool deeplima::dumper::dfs ( int v,
std::vector< uint32_t > & heads,
std::vector< int > & color,
uint32_t & cycle_start,
uint32_t & cycle_end )

Definition at line 106 of file dumper_conllu.h.

◆ find_cycle()

bool deeplima::dumper::find_cycle ( std::vector< uint32_t > & heads,
uint32_t root )

Definition at line 134 of file dumper_conllu.h.

◆ operator<<() [1/2]

std::ostream & deeplima::dumper::operator<< ( std::ostream & oss,
const ConllToken & token )

Definition at line 55 of file dumper_conllu.h.

◆ operator<<() [2/2]

template<typename T>
std::ostream & deeplima::dumper::operator<< ( std::ostream & out,
const std::vector< T > & v )

Definition at line 95 of file dumper_conllu.h.