Skip to content
Snippets Groups Projects
Commit eb5ed752 authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Update

parent 001f1eb4
No related branches found
No related tags found
1 merge request!7Merge model-metadata to master
......@@ -286,8 +286,8 @@ public class LanguageModelFacilitator(
ngramContext: NgramContext,
timeStampInSeconds: Long,
blockPotentiallyOffensive: Boolean,
importance: Int) {
importance: Int
) {
val wordCtx = ngramContext.fullContext.trim().lines().last()
var committedNgramCtx = ngramContext.extractPrevWordsContext().replace(NgramContext.BEGINNING_OF_SENTENCE_TAG, " ").trim();
if(committedNgramCtx.isEmpty()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment