This commit is contained in:
Aleksandras Kostarevas 2023-11-21 20:41:14 +02:00
parent 001f1eb442
commit eb5ed75227

View File

@ -286,8 +286,8 @@ public class LanguageModelFacilitator(
ngramContext: NgramContext, ngramContext: NgramContext,
timeStampInSeconds: Long, timeStampInSeconds: Long,
blockPotentiallyOffensive: Boolean, blockPotentiallyOffensive: Boolean,
importance: Int) { importance: Int
) {
val wordCtx = ngramContext.fullContext.trim().lines().last() val wordCtx = ngramContext.fullContext.trim().lines().last()
var committedNgramCtx = ngramContext.extractPrevWordsContext().replace(NgramContext.BEGINNING_OF_SENTENCE_TAG, " ").trim(); var committedNgramCtx = ngramContext.extractPrevWordsContext().replace(NgramContext.BEGINNING_OF_SENTENCE_TAG, " ").trim();
if(committedNgramCtx.isEmpty()) { if(committedNgramCtx.isEmpty()) {