public override int GetHashCode() { int hash = 1; if (Segmentor.Length != 0) { hash ^= Segmentor.GetHashCode(); } if (UseMapManager != false) { hash ^= UseMapManager.GetHashCode(); } if (UseObjectFilterBank != false) { hash ^= UseObjectFilterBank.GetHashCode(); } return(hash); }
static void Main(string[] args) { List <String> words = null; List <String> postags = null; List <String> rectags = null; List <int> heads = null; List <string> deprels = null; Segmentor segmentor = new Segmentor(@"..\..\..\ltp_data\cws.model"); segmentor.Segment("爱上一匹野马,可我的家里没有草原。", out words); Postagger postagger = new Postagger(@"..\..\..\ltp_data\pos.model"); postagger.Postag(words, out postags); Recognizer recognizer = new Recognizer(@"..\..\..\ltp_data\ner.model"); recognizer.Recognize(words, postags, out rectags); Parser parser = new Parser(@"..\..\..\ltp_data\parser.model"); parser.Parse(words, postags, out heads, out deprels); }