Fix limit_length
This commit is contained in:
parent
ce6fcbd8b5
commit
61e05de199
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import markovify
|
import markovify
|
||||||
|
from random import randint
|
||||||
|
|
||||||
def make_sentence(cfg):
|
def make_sentence(cfg):
|
||||||
class nlt_fixed(markovify.NewlineText): # modified version of NewlineText that never rejects sentences
|
class nlt_fixed(markovify.NewlineText): # modified version of NewlineText that never rejects sentences
|
||||||
|
|
|
@ -13,7 +13,6 @@ import itertools
|
||||||
import json5 as json
|
import json5 as json
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import anyio.to_process
|
import anyio.to_process
|
||||||
from random import randint
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
TextGenerationMode = enum.Enum('TextGenerationMode', """
|
TextGenerationMode = enum.Enum('TextGenerationMode', """
|
||||||
|
|
Loading…
Reference in New Issue