Example #1
0
        private static TranslationInfo CreateTranslationInfo(IReadOnlyList <string> sourceSegment,
                                                             IReadOnlyList <string> targetSegment, IntPtr data)
        {
            var scoreComps = new double[8];

            Thot.tdata_getScoreComponents(data, scoreComps, (uint)scoreComps.Length);
            return(new TranslationInfo(scoreComps, targetSegment));
        }