automatically control sentance ending multiplier

This commit is contained in:
xfnw 2021-08-10 10:22:37 -04:00
parent 395ac230a9
commit e5f63abff2

View file

@ -73,8 +73,12 @@ async def genOut(self, noun):
iter += 69 iter += 69
iter += 1 iter += 1
coun += 1 coun += 1
if coun >= 14:
if coun <= 3:
shared.enmul -= 1
elif coun >= 14:
shared.enmul += 1 shared.enmul += 1
return out return out
@ -116,7 +120,7 @@ async def init(self):
# sentance ending weight, lower means longer sentances, # sentance ending weight, lower means longer sentances,
# higher means shorter sentances. this will need to slowly # higher means shorter sentances. this will need to slowly
# get larger as the database grows # get larger as the database grows
shared.enmul = 10 shared.enmul = 9
shared.rawm['nlp'] = filter shared.rawm['nlp'] = filter