Class LanguageResult<T>
- Namespace
- AiDotNet.Interfaces
- Assembly
- AiDotNet.dll
Represents the result of language identification.
public class LanguageResult<T>
Type Parameters
TThe numeric type.
- Inheritance
-
LanguageResult<T>
- Inherited Members
Properties
AlternativeLanguage
Gets the second most likely language (if close in probability).
public string? AlternativeLanguage { get; init; }
Property Value
AlternativeProbability
Gets the probability of the alternative language.
public T? AlternativeProbability { get; init; }
Property Value
- T
Confidence
Gets the confidence score (0.0 to 1.0).
public required T Confidence { get; init; }
Property Value
- T
LanguageCode
Gets the detected language code (ISO 639-1/3).
public required string LanguageCode { get; init; }
Property Value
LanguageName
Gets the human-readable language name.
public required string LanguageName { get; init; }