2017-06-08 10:28:36 +00:00
|
|
|
package data
|
2017-05-25 10:33:26 +00:00
|
|
|
|
2017-06-08 07:27:27 +00:00
|
|
|
// CODE GENERATED AUTOMATICALLY WITH gopkg.in/src-d/enry.v1/internal/code-generator
|
2017-05-25 10:33:26 +00:00
|
|
|
// THIS FILE SHOULD NOT BE EDITED BY HAND
|
|
|
|
// Extracted from github/linguist commit: {{ getCommit }}
|
|
|
|
|
2017-06-08 10:28:36 +00:00
|
|
|
var LanguagesLogProbabilities = map[string]float64{
|
2017-05-25 10:33:26 +00:00
|
|
|
{{ $freqs := . -}}
|
|
|
|
{{range $index, $language := orderKeys .Languages -}}
|
|
|
|
"{{ $language }}": {{ languageLogProbability $language -}},
|
|
|
|
{{end -}}
|
2017-06-08 10:28:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var TokensLogProbabilities = map[string]map[string]float64{
|
2017-05-25 10:33:26 +00:00
|
|
|
{{range $index, $language := orderMapMapKeys .Tokens -}}
|
2017-06-08 10:28:36 +00:00
|
|
|
"{{ $language }}": map[string]float64{
|
2017-05-25 10:33:26 +00:00
|
|
|
{{range $i, $token := index $freqs.Tokens $language | orderKeys -}}
|
|
|
|
{{ quote $token }}: {{ tokenLogProbability $language $token }},
|
|
|
|
{{end -}}
|
|
|
|
},
|
|
|
|
{{end -}}
|
2017-06-08 10:28:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var TokensTotal = {{ toFloat64 .TokensTotal -}}
|