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

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