Learn R Programming

word.alignment (version 1.0.9)

squareN: Finding Neighborhood Locations

Description

Starting with the intersection of ef and fe alignment one by one and finding the square neighbors including the union and intersection, recursively.

Usage

squareN(fe, ef, n_row)

Arguments

fe

an integer vector.

ef

an integer vector.

n_row

an integer. Number of rows of an initial matrix.

Value

An integer vector.

References

Koehn P. (2010), "Statistical Machine Translation.", Cambridge University, New York.

Examples

Run this code
# NOT RUN {
fe = c(1,4,2,4,2)
ef = c(3,2,1,5)
n_row = 4
squareN (fe, ef, n_row)
# }

Run the code above in your browser using DataLab