We need to make some adjustments prior to implementing the hierarchical N-Gram predictor.
Add the following member function to the NGramPredictor class:
public int GetActionsNum(ref T[] actions) { string key = ArrToStrKey(ref actions); if (!data.ContainsKey(key)) return 0; return data[key].total; }