From e5f63abff2f3c6f44f8bedb7bac2dc0bc955c715 Mon Sep 17 00:00:00 2001 From: xfnw Date: Tue, 10 Aug 2021 10:22:37 -0400 Subject: [PATCH] automatically control sentance ending multiplier --- modules/nlp.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/nlp.py b/modules/nlp.py index 290cfec..24a9176 100644 --- a/modules/nlp.py +++ b/modules/nlp.py @@ -73,8 +73,12 @@ async def genOut(self, noun): iter += 69 iter += 1 coun += 1 - if coun >= 14: + + if coun <= 3: + shared.enmul -= 1 + elif coun >= 14: shared.enmul += 1 + return out @@ -116,7 +120,7 @@ async def init(self): # sentance ending weight, lower means longer sentances, # higher means shorter sentances. this will need to slowly # get larger as the database grows - shared.enmul = 10 + shared.enmul = 9 shared.rawm['nlp'] = filter