Beispiel #1
0
        public CRFSegment(string modelPath)
        {
            _crfModel = GlobalCache.Get(modelPath) as CRFSegmentModel;
            if (_crfModel == null)
            {
                //_crfModel = CRFSegmentModel.Create(modelPath);

                _crfModel = new CRFSegmentModel(new BinTrie <FeatureFunction>());
                _crfModel.Load(modelPath);
                GlobalCache.Put(modelPath, _crfModel);
            }
        }