public void Assign(CRFNode node, int value) { if (dict.ContainsKey(node)) { dict[node] = value; } else { dict.Add(node, value); } }
public int ValueOf(CRFNode node) { return(dict[node]); }
public void Count(CRFNode node, int value) { node.TempCount += node.TempAssign; }