Ejemplo n.º 1
0
		/// <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)
		{
			Beam = new ChunkBeamSearch(this, beamSize, contextGenerator, model);
			Model = 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>
 protected MaximumEntropyChunker(SharpEntropy.IMaximumEntropyModel model, IChunkerContextGenerator contextGenerator, int beamSize)
 {
     Beam  = new ChunkBeamSearch(this, beamSize, contextGenerator, model);
     Model = model;
 }