Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: JuliaText/TextAnalysis.jl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4ec883aa97c3a4d10bd6fc4ce1d1d3fb596f8a98
Choose a base ref
..
head repository: JuliaText/TextAnalysis.jl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0f4ed718193668c667d6200a0a45aea06c5efc5f
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/LM/api.jl
2 changes: 1 addition & 1 deletion src/LM/api.jl
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ function entropy(m::Langmodel, lm::DefaultDict, text_ngram::AbstractVector)::Flo
ngram = split(ngram)
logscore(m, lm, ngram[end], join(ngram[begin:end-1], " "))
end
return n_sum/length(text_ngram)
return n_sum / length(text_ngram)
end

"""