Ejemplo n.º 1
0
 public MaximumEntropyPOSTagger(int beamSize, MaxEntropyModel_Interface model, IPosContextGenerator contextGenerator, Interfaces.PosLookupList dictionary)
 {
     mBeamSize         = beamSize;
     mPosModel         = model;
     mContextGenerator = contextGenerator;
     Beam        = new PosBeamSearch(this, mBeamSize, contextGenerator, model);
     mDictionary = dictionary;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new name finder with the specified model and context generator.
 /// </summary>
 /// <param name="model">
 /// The model to be used to find names.
 /// </param>
 /// <param name="contextGenerator">
 /// The context generator to be used with this name finder.
 /// </param>
 /// <param name="beamSize">
 /// The size of the beam to be used in decoding this model.
 /// </param>
 public MaximumEntropyNameFinder(MaxEntropyModel_Interface model, Interfaces.INameContextGenerator contextGenerator, int beamSize)
 {
     mModel            = model;
     mContextGenerator = contextGenerator;
     mBeam             = new NameBeamSearch(this, beamSize, contextGenerator, model, beamSize);
 }