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;
 }
 public MaximumEntropyPosTagger(SharpEntropy.IMaximumEntropyModel model, IPosContextGenerator contextGenerator, PosLookupList dictionary) :
     this(DefaultBeamSize, model, contextGenerator, dictionary)
 {
 }
Example #3
0
        // Constructors ----------

        public EnglishMaximumEntropyPosTagger(string modelFile, PosLookupList dictionary) :
            base(GetModel(modelFile), new DefaultPosContextGenerator(), dictionary)
        {
        }