/// <param name="document">the underlying document which is a list of HasWord; a slight abstraction violation, but useful for debugging!!</param> public SequenceGibbsSampler(int numSamples, int sampleInterval, ISequenceListener listener, IList document, bool returnLastFoundSequence, int samplingStyle, int chromaticSize, IList <IList <int> > partition, int speedUpThreshold, EmpiricalNERPriorBIO priorEn, EmpiricalNERPriorBIO priorCh) { this.numSamples = numSamples; this.sampleInterval = sampleInterval; this.listener = listener; this.document = document; this.returnLastFoundSequence = returnLastFoundSequence; this.samplingStyle = samplingStyle; if (verbose > 0) { if (samplingStyle == RandomSampling) { log.Info("Using random sampling"); } else { if (samplingStyle == ChromaticSampling) { log.Info("Using chromatic sampling with " + chromaticSize + " threads"); } else { if (samplingStyle == SequentialSampling) { log.Info("Using sequential sampling"); } } } } this.chromaticSize = chromaticSize; this.partition = partition; this.speedUpThreshold = speedUpThreshold; //debug this.priorEn = priorEn; this.priorCh = priorCh; }
public SequenceGibbsSampler(int numSamples, int sampleInterval, ISequenceListener listener, int samplingStyle, int chromaticSize, IList <IList <int> > partition, int speedUpThreshold, EmpiricalNERPriorBIO priorEn, EmpiricalNERPriorBIO priorCh) : this(numSamples, sampleInterval, listener, null, false, samplingStyle, chromaticSize, partition, speedUpThreshold, priorEn, priorCh) { }