#include <span.h>
ZGen::BestFirst::Span::Span |
( |
| ) |
|
void ZGen::BestFirst::Span::clear |
( |
| ) |
|
Clear the information stored in the span, including clear the left and right spans, set the initialized flag false.
bool ZGen::BestFirst::Span::complete |
( |
| ) |
|
Return if the span is a complete span. A complete span is
- Returns
- bool Return true if the span is a complete span, otherwise return false.
void ZGen::BestFirst::Span::copy |
( |
const Span * |
other | ) |
|
Copy the context of the other span into this span.
- Parameters
-
Initialize the span with input information, including set the init flag to true.
- Parameters
-
[in] | ref | The reference to the input dependency. |
[in] | root_id | The index to the root. |
[in] | tag | The postag. |
bool ZGen::BestFirst::Span::link_left |
( |
const Span * |
modifier | ) |
|
Link the left modifier span into the current span.
- Parameters
-
[in] | modifier | The left modifier. |
- Returns
- bool Return true if successfully linked, otherwise false.
bool ZGen::BestFirst::Span::link_right |
( |
const Span * |
modifier | ) |
|
Link the right modifier span into the current span.
- Parameters
-
[in] | modifier | The right modifier. |
- Returns
- bool Return true if successfully linked, otherwise false.
void ZGen::BestFirst::Span::repr |
( |
std::string & |
s | ) |
const |
Represent the span in string.
- Parameters
-
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Span & |
span |
|
) |
| |
|
friend |
bool ZGen::BestFirst::Span::initialized |
std::vector<const Span *> ZGen::BestFirst::Span::left_spans |
The reference to the input
std::vector<const Span *> ZGen::BestFirst::Span::right_spans |
int ZGen::BestFirst::Span::root_id |
The score of the current span
The postag tag to the root of the span
The documentation for this struct was generated from the following files: