| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| w = text[j:i] | ||
| if P[w] * best[i - len(w)] >= best[i]: | ||
| best[i] = P[w] * best[i - len(w)] | ||
| curr_score = P[w] * best[i - len(w)] |
There was a problem hiding this comment.
I have seen curr_something (or currSomething etc.) pop up a lot around, so I assume most people will get it. The problem with p_score is that p doesn't give enough information, which is not the same case as curr_score.
I personally feel it's fine, but I don't feel strongly about it. If more have the same issue, I will change it.
Sorry, something went wrong.
There was a problem hiding this comment.
You are right. I'm sure most won't have an issue.
Sorry, something went wrong.
|
Branch was deleted, will make a new PR. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
In viterbi_segment, the calculation P[w] * best[i - len(w)] is used twice in a row, so I stored it into a variable (curr_score) and used that instead.
Also made quotation and spacing fixes to the comments.