File size: 675 Bytes
158b61b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once

#include <utility>
#include <vector>

namespace Moses
{
namespace Syntax
{
namespace S2T
{

/* Lattice in which a full path corresponds to the tail of a PHyperedge.
 * For an entry x[i][j][k][l] in a TailLattice x:
 *
 *  i = offset from start of rule pattern
 *
 *  j = index of gap + 1 (zero indicates a terminal, otherwise the index is
 *      zero-based from the left of the rule pattern)
 *
 *  k = arc width
 *
 *  l = label index (zero for terminals, otherwise as in RuleTrieScope3::Node)
 */
typedef std::vector<
std::vector<
std::vector<
std::vector<const PVertex *> > > > TailLattice;

}  // namespace S2T
}  // namespace Syntax
}  // namespace Moses