public class LengthModelLearn
extends java.lang.Object
cat.lump.sim.cl.len.LengthModel
Modifier | Constructor and Description |
---|---|
protected |
LengthModelLearn()
Invoke without setting the source and target files
(it's going to be done by the calling class
|
|
LengthModelLearn(java.io.File srcFile,
java.io.File trgFile)
Invocation with the source and target files
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
computeLengths(java.io.File f)
Opens the file and computes lengths for every line within
|
double |
getMu() |
double |
getSigma() |
void |
learn()
Esimate the mu and sigma parameters for the parallel corpus provided
|
void |
setFiles(java.io.File srcFile,
java.io.File trgFile)
Set the two input files
|
protected LengthModelLearn()
public LengthModelLearn(java.io.File srcFile, java.io.File trgFile)
srcFile
- trgFile
- public void learn()
public java.util.List<java.lang.Integer> computeLengths(java.io.File f)
f
- input filepublic void setFiles(java.io.File srcFile, java.io.File trgFile)
srcFile
- trgFile
- public double getMu()
public double getSigma()