Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsReliable ¶
IsReliable returns true if the prediction is considered "reliable". It is considered reliable if the probability of the predicted language is higher than 2 standard deviations from the mean. Original: https://github.com/yoeo/guesslang/blob/42ec63776777e1bdce2d72f51710c6634e36e00c/guesslang/guess.py#L157-L165
Types ¶
type Answer ¶
type Answer struct { Predictions []Prediction Reliable bool }
Answer is the result of a guesslang model execution, also providing whether or not the answer is considered reliable.
type Guesser ¶
type Guesser struct {
// contains filtered or unexported fields
}
type Prediction ¶
Prediction is a single language prediction, including the confidence and the language.
Click to show internal directories.
Click to hide internal directories.