예제 #1
0
 public FactorTable(Edu.Stanford.Nlp.IE.Crf.FactorTable t)
 {
     numClasses = t.NumClasses();
     windowSize = t.WindowSize();
     table      = new double[t.Size()];
     System.Array.Copy(t.table, 0, table, 0, t.Size());
 }
예제 #2
0
        public virtual void MultiplyInEnd(Edu.Stanford.Nlp.IE.Crf.FactorTable other)
        {
            int divisor = SloppyMath.IntPow(numClasses, other.WindowSize());

            for (int i = 0; i < table.Length; i++)
            {
                table[i] += other.GetValue(i % divisor);
            }
        }