public class BerkeleyAligner
extends java.lang.Object
MonolingualCorpus
es through the Berkeley
Aligner.Modifier and Type | Class and Description |
---|---|
static class |
BerkeleyAligner.AlignmentResult
A result of aligning two
MonolingualCorpus es by
BerkeleyAligner . |
Modifier and Type | Method and Description |
---|---|
static BerkeleyAligner.AlignmentResult |
align(MonolingualCorpus src,
MonolingualCorpus trg,
int iterations,
boolean syntactic)
Aligns two
MonolingualCorpus es through the Berkeley Aligner in
two stages: the first one using IBM Model 1 and the second one using HMM
with or without syntactic tailoring. |
public static BerkeleyAligner.AlignmentResult align(MonolingualCorpus src, MonolingualCorpus trg, int iterations, boolean syntactic)
MonolingualCorpus
es through the Berkeley Aligner in
two stages: the first one using IBM Model 1 and the second one using HMM
with or without syntactic tailoring.src
- the source MonolingualCorpus
.trg
- the target MonolingualCorpus
.iterations
- the amount of iterations to perform on each of the stages.syntactic
- if true
use syntactic tailoring, which explicitly takes into account source language constituent structure.BerkeleyAligner.AlignmentResult
that represents the result of the alignment (the word alignment along with the lexical weightings in both directions).