summaryrefslogtreecommitdiffstats
path: root/ai_dungeon.py
AgeCommit message (Collapse)AuthorFilesLines
2022-02-15Use an nltk tokenizer to trim sentence output.Rose Hogenson1-7/+8
It kind of feels bad to depend on nltk and hugging face, but we're doing the best we can. Too bad that nltk isn't easier to install, too.
2022-02-15Use a naive regexp to strip extra output.Rose Hogenson1-7/+10
The sentence tokenizer wasn't correct because not all sentences end in periods. The current regexp doesn't handle punctuation inside words such as apostrophes or abbreviations, but we're trying it. Maybe a tokenizer would be better?
2022-02-14Format with black.Rose Hogenson1-60/+57
2022-02-14Lint the code and clean up a bit.Rose Hogenson1-0/+146