Beispiel #1
0
 /**
  * <summary>Calculates NGram probabilities given {@link SimpleSmoothing} simple smoothing and level.</summary>
  *
  * <param name="simpleSmoothing">{@link SimpleSmoothing}</param>
  * <param name="level">Level for which N-Gram probabilities will be set.</param>
  *
  */
 public void CalculateNGramProbabilities(SimpleSmoothing <TSymbol> simpleSmoothing, int level)
 {
     simpleSmoothing.SetProbabilities(this, level);
 }
 /**
  * <summary>Constructor of {@link InterpolatedSmoothing}</summary>
  * <param name="simpleSmoothing">smoothing method.</param>
  */
 public InterpolatedSmoothing(SimpleSmoothing <TSymbol> simpleSmoothing)
 {
     this._simpleSmoothing = simpleSmoothing;
 }
Beispiel #3
0
 /**
  * <summary>Calculates NGram probabilities using {@link SimpleSmoothing} simple smoothing.</summary>
  *
  * <param name="simpleSmoothing">{@link SimpleSmoothing}</param>
  */
 public void CalculateNGramProbabilities(SimpleSmoothing <TSymbol> simpleSmoothing)
 {
     simpleSmoothing.SetProbabilities(this);
 }
 /**
  * <summary>No argument constructor of {@link InterpolatedSmoothing}</summary>
  */
 public InterpolatedSmoothing()
 {
     this._simpleSmoothing = new GoodTuringSmoothing <TSymbol>();
 }