LatticeLexiconWordAligner::TupleHash Struct Reference

Public Member Functions

size_t operator() (const Tuple &state) const
 

Detailed Description

Definition at line 181 of file word-align-lattice-lexicon.cc.

Member Function Documentation

◆ operator()()

size_t operator() ( const Tuple state) const
inline

Definition at line 182 of file word-align-lattice-lexicon.cc.

References LatticeLexiconWordAligner::Tuple::comp_state, LatticeLexiconWordAligner::ComputationState::Hash(), and LatticeLexiconWordAligner::Tuple::input_state.

182  {
183  return state.input_state + 102763 * state.comp_state.Hash();
184  // 102763 is just an arbitrary prime number
185  }

The documentation for this struct was generated from the following file: