BotSharp/BotSharp.MachineLearning/CRFLite/Encoder/IFeatureLexicalDict.cs

22 lines
527 B
C#
Raw Normal View History

2018-08-18 21:13:49 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BotSharp.MachineLearning.CRFLite.Encoder
{
public interface IFeatureLexicalDict
{
void Shrink(int freq);
long GetOrAddId(string strFeature);
long RegenerateFeatureId(CRFLite.Utils.BTreeDictionary<long, long> old2new, long ysize);
void GenerateLexicalIdList(out IList<string> fea, out IList<int> val);
void Clear();
long Size
{
get;
}
}
}