/// <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 FactoredSequenceListener(ISequenceListener model1, ISequenceListener model2) { this.model1 = model1; this.model2 = model2; }
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) { }
public SequenceGibbsSampler(int numSamples, int sampleInterval, ISequenceListener listener) : this(numSamples, sampleInterval, listener, null) { }
public SequenceGibbsSampler(int numSamples, int sampleInterval, ISequenceListener listener, IList document) : this(numSamples, sampleInterval, listener, document, false, 1, 0, null, -1, null, null) { }