#include <PhraseOrientationFeature.h>
Definition at line 27 of file PhraseOrientationFeature.h.
Moses::PhraseOrientationFeatureState::PhraseOrientationFeatureState | ( | bool | distinguishStates, | |
bool | useSparseWord, | |||
bool | useSparseNT | |||
) | [inline] |
Definition at line 33 of file PhraseOrientationFeature.h.
static int Moses::PhraseOrientationFeatureState::CompareLeftBoundaryRecursive | ( | const PhraseOrientationFeatureState & | state, | |
const PhraseOrientationFeatureState & | otherState, | |||
bool | useSparseNT | |||
) | [inline, static, protected] |
Definition at line 107 of file PhraseOrientationFeature.h.
References m_leftBoundaryIsSet, m_leftBoundaryNonTerminalL2RHeuristicScoreIndex, m_leftBoundaryNonTerminalL2RPossibleFutureOrientations, m_leftBoundaryNonTerminalL2RScores, m_leftBoundaryNonTerminalSymbol, m_leftBoundaryPrevState, m_leftBoundaryRecursionGuard, and Smaller().
Referenced by operator==().
static int Moses::PhraseOrientationFeatureState::CompareRightBoundaryRecursive | ( | const PhraseOrientationFeatureState & | state, | |
const PhraseOrientationFeatureState & | otherState, | |||
bool | useSparseNT | |||
) | [inline, static, protected] |
Definition at line 168 of file PhraseOrientationFeature.h.
References m_rightBoundaryIsSet, m_rightBoundaryNonTerminalR2LHeuristicScoreIndex, m_rightBoundaryNonTerminalR2LPossibleFutureOrientations, m_rightBoundaryNonTerminalR2LScores, m_rightBoundaryNonTerminalSymbol, m_rightBoundaryPrevState, m_rightBoundaryRecursionGuard, and Smaller().
Referenced by operator==().
float Moses::PhraseOrientationFeatureState::GetLeftBoundaryL2RScoreDiscontinuous | ( | ) | const [inline] |
Definition at line 85 of file PhraseOrientationFeature.h.
References m_leftBoundaryNonTerminalL2RScores.
float Moses::PhraseOrientationFeatureState::GetLeftBoundaryL2RScoreMono | ( | ) | const [inline] |
Definition at line 77 of file PhraseOrientationFeature.h.
References m_leftBoundaryNonTerminalL2RScores.
float Moses::PhraseOrientationFeatureState::GetLeftBoundaryL2RScoreSwap | ( | ) | const [inline] |
Definition at line 81 of file PhraseOrientationFeature.h.
References m_leftBoundaryNonTerminalL2RScores.
float Moses::PhraseOrientationFeatureState::GetRightBoundaryR2LScoreDiscontinuous | ( | ) | const [inline] |
Definition at line 98 of file PhraseOrientationFeature.h.
References m_rightBoundaryNonTerminalR2LScores.
float Moses::PhraseOrientationFeatureState::GetRightBoundaryR2LScoreMono | ( | ) | const [inline] |
Definition at line 90 of file PhraseOrientationFeature.h.
References m_rightBoundaryNonTerminalR2LScores.
float Moses::PhraseOrientationFeatureState::GetRightBoundaryR2LScoreSwap | ( | ) | const [inline] |
Definition at line 94 of file PhraseOrientationFeature.h.
References m_rightBoundaryNonTerminalR2LScores.
size_t Moses::PhraseOrientationFeatureState::hash | ( | ) | const [virtual] |
Implements Moses::FFState.
Definition at line 23 of file PhraseOrientationFeature.cpp.
References HashCombineLeftBoundaryRecursive(), HashCombineRightBoundaryRecursive(), m_distinguishStates, m_leftBoundaryIsSet, m_rightBoundaryIsSet, and m_useSparseNT.
static void Moses::PhraseOrientationFeatureState::HashCombineLeftBoundaryRecursive | ( | size_t & | hash, | |
const PhraseOrientationFeatureState & | state, | |||
bool | useSparseNT | |||
) | [inline, static, protected] |
Definition at line 230 of file PhraseOrientationFeature.h.
References m_leftBoundaryIsSet, m_leftBoundaryNonTerminalL2RPossibleFutureOrientations, m_leftBoundaryNonTerminalL2RScores, m_leftBoundaryNonTerminalSymbol, m_leftBoundaryPrevState, and m_leftBoundaryRecursionGuard.
Referenced by hash().
static void Moses::PhraseOrientationFeatureState::HashCombineRightBoundaryRecursive | ( | size_t & | hash, | |
const PhraseOrientationFeatureState & | state, | |||
bool | useSparseNT | |||
) | [inline, static, protected] |
Definition at line 253 of file PhraseOrientationFeature.h.
References m_rightBoundaryIsSet, m_rightBoundaryNonTerminalR2LPossibleFutureOrientations, m_rightBoundaryNonTerminalR2LScores, m_rightBoundaryNonTerminalSymbol, m_rightBoundaryPrevState, and m_rightBoundaryRecursionGuard.
Referenced by hash().
bool Moses::PhraseOrientationFeatureState::operator== | ( | const FFState & | other | ) | const [virtual] |
Implements Moses::FFState.
Definition at line 42 of file PhraseOrientationFeature.cpp.
References CompareLeftBoundaryRecursive(), CompareRightBoundaryRecursive(), m_distinguishStates, m_leftBoundaryIsSet, m_rightBoundaryIsSet, and m_useSparseNT.
void Moses::PhraseOrientationFeatureState::SetLeftBoundaryL2R | ( | const std::vector< float > & | scores, | |
size_t | heuristicScoreIndex, | |||
std::bitset< 3 > & | possibleFutureOrientations, | |||
const Factor * | leftBoundaryNonTerminalSymbol, | |||
const PhraseOrientationFeatureState * | prevState | |||
) | [inline] |
Definition at line 47 of file PhraseOrientationFeature.h.
References m_leftBoundaryIsSet, m_leftBoundaryNonTerminalL2RHeuristicScoreIndex, m_leftBoundaryNonTerminalL2RPossibleFutureOrientations, m_leftBoundaryNonTerminalL2RScores, m_leftBoundaryNonTerminalSymbol, and m_leftBoundaryPrevState.
Referenced by Moses::PhraseOrientationFeature::EvaluateWhenApplied().
void Moses::PhraseOrientationFeatureState::SetRightBoundaryR2L | ( | const std::vector< float > & | scores, | |
size_t | heuristicScoreIndex, | |||
std::bitset< 3 > & | possibleFutureOrientations, | |||
const Factor * | rightBoundaryNonTerminalSymbol, | |||
const PhraseOrientationFeatureState * | prevState | |||
) | [inline] |
Definition at line 62 of file PhraseOrientationFeature.h.
References m_rightBoundaryIsSet, m_rightBoundaryNonTerminalR2LHeuristicScoreIndex, m_rightBoundaryNonTerminalR2LPossibleFutureOrientations, m_rightBoundaryNonTerminalR2LScores, m_rightBoundaryNonTerminalSymbol, and m_rightBoundaryPrevState.
Referenced by Moses::PhraseOrientationFeature::EvaluateWhenApplied().
static bool Moses::PhraseOrientationFeatureState::Smaller | ( | const std::bitset< N > & | x, | |
const std::bitset< N > & | y | |||
) | [inline, static, protected] |
Definition at line 277 of file PhraseOrientationFeature.h.
Referenced by CompareLeftBoundaryRecursive(), and CompareRightBoundaryRecursive().
friend class PhraseOrientationFeature [friend] |
Definition at line 31 of file PhraseOrientationFeature.h.
const bool Moses::PhraseOrientationFeatureState::m_distinguishStates [protected] |
bool Moses::PhraseOrientationFeatureState::m_leftBoundaryIsSet [protected] |
Definition at line 296 of file PhraseOrientationFeature.h.
Referenced by CompareLeftBoundaryRecursive(), hash(), HashCombineLeftBoundaryRecursive(), operator==(), and SetLeftBoundaryL2R().
size_t Moses::PhraseOrientationFeatureState::m_leftBoundaryNonTerminalL2RHeuristicScoreIndex [protected] |
Definition at line 288 of file PhraseOrientationFeature.h.
Referenced by CompareLeftBoundaryRecursive(), and SetLeftBoundaryL2R().
std::bitset<3> Moses::PhraseOrientationFeatureState::m_leftBoundaryNonTerminalL2RPossibleFutureOrientations [protected] |
Definition at line 291 of file PhraseOrientationFeature.h.
Referenced by CompareLeftBoundaryRecursive(), Moses::PhraseOrientationFeature::EvaluateWhenApplied(), HashCombineLeftBoundaryRecursive(), and SetLeftBoundaryL2R().
std::vector<float> Moses::PhraseOrientationFeatureState::m_leftBoundaryNonTerminalL2RScores [protected] |
Definition at line 285 of file PhraseOrientationFeature.h.
Referenced by CompareLeftBoundaryRecursive(), GetLeftBoundaryL2RScoreDiscontinuous(), GetLeftBoundaryL2RScoreMono(), GetLeftBoundaryL2RScoreSwap(), HashCombineLeftBoundaryRecursive(), and SetLeftBoundaryL2R().
const Factor* Moses::PhraseOrientationFeatureState::m_leftBoundaryNonTerminalSymbol [protected] |
Definition at line 303 of file PhraseOrientationFeature.h.
Referenced by CompareLeftBoundaryRecursive(), HashCombineLeftBoundaryRecursive(), and SetLeftBoundaryL2R().
const PhraseOrientationFeatureState* Moses::PhraseOrientationFeatureState::m_leftBoundaryPrevState [protected] |
Definition at line 298 of file PhraseOrientationFeature.h.
Referenced by CompareLeftBoundaryRecursive(), HashCombineLeftBoundaryRecursive(), and SetLeftBoundaryL2R().
bool Moses::PhraseOrientationFeatureState::m_leftBoundaryRecursionGuard [protected] |
Definition at line 294 of file PhraseOrientationFeature.h.
Referenced by CompareLeftBoundaryRecursive(), Moses::PhraseOrientationFeature::EvaluateWhenApplied(), and HashCombineLeftBoundaryRecursive().
bool Moses::PhraseOrientationFeatureState::m_rightBoundaryIsSet [protected] |
Definition at line 297 of file PhraseOrientationFeature.h.
Referenced by CompareRightBoundaryRecursive(), hash(), HashCombineRightBoundaryRecursive(), operator==(), and SetRightBoundaryR2L().
size_t Moses::PhraseOrientationFeatureState::m_rightBoundaryNonTerminalR2LHeuristicScoreIndex [protected] |
Definition at line 289 of file PhraseOrientationFeature.h.
Referenced by CompareRightBoundaryRecursive(), and SetRightBoundaryR2L().
std::bitset<3> Moses::PhraseOrientationFeatureState::m_rightBoundaryNonTerminalR2LPossibleFutureOrientations [protected] |
Definition at line 292 of file PhraseOrientationFeature.h.
Referenced by CompareRightBoundaryRecursive(), Moses::PhraseOrientationFeature::EvaluateWhenApplied(), HashCombineRightBoundaryRecursive(), and SetRightBoundaryR2L().
std::vector<float> Moses::PhraseOrientationFeatureState::m_rightBoundaryNonTerminalR2LScores [protected] |
Definition at line 286 of file PhraseOrientationFeature.h.
Referenced by CompareRightBoundaryRecursive(), GetRightBoundaryR2LScoreDiscontinuous(), GetRightBoundaryR2LScoreMono(), GetRightBoundaryR2LScoreSwap(), HashCombineRightBoundaryRecursive(), and SetRightBoundaryR2L().
const Factor* Moses::PhraseOrientationFeatureState::m_rightBoundaryNonTerminalSymbol [protected] |
Definition at line 304 of file PhraseOrientationFeature.h.
Referenced by CompareRightBoundaryRecursive(), HashCombineRightBoundaryRecursive(), and SetRightBoundaryR2L().
const PhraseOrientationFeatureState* Moses::PhraseOrientationFeatureState::m_rightBoundaryPrevState [protected] |
Definition at line 299 of file PhraseOrientationFeature.h.
Referenced by CompareRightBoundaryRecursive(), HashCombineRightBoundaryRecursive(), and SetRightBoundaryR2L().
bool Moses::PhraseOrientationFeatureState::m_rightBoundaryRecursionGuard [protected] |
Definition at line 295 of file PhraseOrientationFeature.h.
Referenced by CompareRightBoundaryRecursive(), Moses::PhraseOrientationFeature::EvaluateWhenApplied(), and HashCombineRightBoundaryRecursive().
const bool Moses::PhraseOrientationFeatureState::m_useSparseNT [protected] |
const bool Moses::PhraseOrientationFeatureState::m_useSparseWord [protected] |
Definition at line 301 of file PhraseOrientationFeature.h.