コード例 #1
0
ファイル: Tokenizer.cs プロジェクト: nQuantums/tips
		private void ReadNodeInfo(MeCabDictionary dic, Token token, MeCabNode node)
		{
			node.LCAttr = token.LcAttr;
			node.RCAttr = token.RcAttr;
			node.PosId = token.PosId;
			node.WCost = token.WCost;
			node.SetFeature(token.Feature, dic);
		}
コード例 #2
0
 private void ReadNodeInfo(MeCabDictionary dic, Token token, MeCabNode node)
 {
     node.LCAttr = token.LcAttr;
     node.RCAttr = token.RcAttr;
     node.PosId  = token.PosId;
     node.WCost  = token.WCost;
     //node.Token = token;
     //node.Feature = dic.GetFeature(token); //この段階では素性情報を取得しない
     node.SetFeature(token.Feature, dic); //そのかわり遅延取得を可能にする
 }
コード例 #3
0
 private void ReadNodeInfo(MeCabDictionary dic, Token token, MeCabNode node)
 {
     node.LCAttr = token.LcAttr;
     node.RCAttr = token.RcAttr;
     node.PosId = token.PosId;
     node.WCost = token.WCost;
     //node.Token = token;
     //node.Feature = dic.GetFeature(token); //この段階では素性情報を取得しない
     node.SetFeature(token.Feature, dic); //そのかわり遅延取得を可能にする
 }