mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-14 15:32:24 +00:00
25 lines
777 B
Cheetah
25 lines
777 B
Cheetah
package data
|
|
|
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
|
// Extracted from github/linguist commit: {{ getCommit }}
|
|
|
|
var LanguagesLogProbabilities = map[string]float64{
|
|
{{ $freqs := . -}}
|
|
{{range $index, $language := orderKeys .Languages -}}
|
|
"{{ $language }}": {{ languageLogProbability $language -}},
|
|
{{end -}}
|
|
}
|
|
|
|
var TokensLogProbabilities = map[string]map[string]float64{
|
|
{{range $index, $language := orderMapMapKeys .Tokens -}}
|
|
"{{ $language }}": map[string]float64{
|
|
{{range $i, $token := index $freqs.Tokens $language | orderKeys -}}
|
|
{{ quote $token }}: {{ tokenLogProbability $language $token }},
|
|
{{end -}}
|
|
},
|
|
{{end -}}
|
|
}
|
|
|
|
var TokensTotal = {{ toFloat64 .TokensTotal -}}
|