Cambridge SMT System
ucam::hifst::posindex Struct Reference

Struct containing rule positions and offsets. More...

#include <data.grammar.comparetool.hpp>

Public Attributes

std::size_t p
 position More...
 
short o
 offset More...
 
std::size_t order
 absolute index More...
 

Detailed Description

Struct containing rule positions and offsets.

Positions are needed to mark the place where the rule has to be searched for (e.g. source phrase). Offsets are needed to indicate where the rule actually starts.

Remarks
Important note: There is a current limitation with this structure. If the number of positions is greater than 4294967295 (~4096MB) expect your tool to go haywire!

Definition at line 36 of file data.grammar.comparetool.hpp.

Member Data Documentation

short ucam::hifst::posindex::o

offset

Definition at line 40 of file data.grammar.comparetool.hpp.

std::size_t ucam::hifst::posindex::order

absolute index

Definition at line 42 of file data.grammar.comparetool.hpp.

std::size_t ucam::hifst::posindex::p

position

Definition at line 38 of file data.grammar.comparetool.hpp.


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