#include <action_utils.h>
Get gold action sequence.
- Parameters
-
[in] | reference | The reference dependency instance. |
[out] | actions | The oracle transition sequence. |
- Returns
- int The number of actions in transition
bool ZGen::ShiftReduce::ActionUtils::is_left_arc |
( |
const action_t & |
act | ) |
|
|
static |
Judge if the given action is LEFT-ARC
- Parameters
-
- Returns
- bool If the action is LEFT-ARC, return true; otherwise false.
bool ZGen::ShiftReduce::ActionUtils::is_right_arc |
( |
const action_t & |
act | ) |
|
|
static |
Judge if the given action is LEFT-ARC
- Parameters
-
- Returns
- bool If the action is LEFT-ARC, return true; otherwise false.
bool ZGen::ShiftReduce::ActionUtils::is_shift |
( |
const action_t & |
act | ) |
|
|
static |
Judge if the given action is SHIFT
- Parameters
-
- Returns
- bool If the action is SHIFT, return true; otherwise false.
The documentation for this class was generated from the following files: