Ejemplo n.º 1
0
        public Dictionary <NLLanguage, double>[] GetPredictedLabelHypotheses(string[] tokens, nuint maximumCount)
        {
            var hypos  = GetNativePredictedLabelHypotheses(tokens, maximumCount);
            var result = new Dictionary <NLLanguage, double> [hypos.Length];

            for (int i = 0; i < result.Length; i++)
            {
                result [i] = NLLanguageExtensions.Convert(hypos [i]);
            }
            return(result);
        }
Ejemplo n.º 2
0
 public Dictionary <NLLanguage, double> GetPredictedLabelHypotheses(string @string, nuint maximumCount)
 {
     using (var hypo = GetNativePredictedLabelHypotheses(@string, maximumCount))
         return(NLLanguageExtensions.Convert(hypo));
 }
Ejemplo n.º 3
0
 public Dictionary <NLLanguage, double> GetTagHypotheses(nuint characterIndex, NLTokenUnit unit, NLTagScheme scheme, nuint maximumCount)
 {
     using (var hypo = GetNativeTagHypotheses(characterIndex, unit, scheme.GetConstant(), maximumCount))
         return(NLLanguageExtensions.Convert(hypo));
 }
Ejemplo n.º 4
0
 public Dictionary <NLLanguage, double> GetLanguageHypotheses(nuint maxHypotheses)
 {
     using (var hypo = GetNativeLanguageHypotheses(maxHypotheses)) {
         return(NLLanguageExtensions.Convert(hypo));
     }
 }