public MaximumEntropyPosTagger(int beamSize, SharpEntropy.IMaximumEntropyModel model, IPosContextGenerator contextGenerator, PosLookupList dictionary) { mBeamSize = beamSize; mPosModel = model; mContextGenerator = contextGenerator; Beam = new PosBeamSearch(this, mBeamSize, contextGenerator, model); mDictionary = dictionary; }
public MaximumEntropyPosTagger(int beamSize, SharpEntropy.IMaximumEntropyModel model, IPosContextGenerator contextGenerator, PosLookupList dictionary) { UseClosedClassTagsFilter = false; this.BeamSize = beamSize; this.PosModel = model; this.ContextGenerator = contextGenerator; Beam = new PosBeamSearch(this, this.BeamSize, contextGenerator, model); this.TagDictionary = dictionary; }
/// <summary> /// Creates a chunker using the specified model and context generator and decodes the /// model using a beam search of the specified size. /// </summary> /// <param name="model"> /// The maximum entropy model for this chunker. /// </param> /// <param name="contextGenerator"> /// The context generator to be used by the specified model. /// </param> /// <param name="beamSize"> /// The size of the beam that should be used when decoding sequences. /// </param> public MaximumEntropyChunker(SharpEntropy.IMaximumEntropyModel model, IChunkerContextGenerator contextGenerator, int beamSize) { mBeam = new ChunkBeamSearch(this, beamSize, contextGenerator, model); mModel = model; }
/// <summary> /// Creates a chunker using the specified model and context generator and decodes the /// model using a beam search of the specified size. /// </summary> /// <param name="model"> /// The maximum entropy model for this chunker. /// </param> /// <param name="contextGenerator"> /// The context generator to be used by the specified model. /// </param> /// <param name="beamSize"> /// The size of the beam that should be used when decoding sequences. /// </param> public MaximumEntropyChunker(MaxEntropyModel_Interface model, IChunkerContextGenerator contextGenerator, int beamSize) { mBeam = new ChunkBeamSearch(this, beamSize, contextGenerator, model); mModel = model; }