mirror of
https://github.com/SillyTavern/SillyTavern-Extras.git
synced 2026-04-27 01:48:58 +00:00
Add more stop words to summarized
This commit is contained in:
20
server.py
20
server.py
@@ -38,7 +38,25 @@ DEFAULT_SUMMARIZE_PARAMS = {
|
||||
'max_length': 500,
|
||||
'min_length': 200,
|
||||
'length_penalty': 1.5,
|
||||
'bad_words': ["\n", '"', "*", "[", "]", "{", "}", ":", "(", ")", "<", ">", "Â"]
|
||||
'bad_words': [
|
||||
"\n",
|
||||
'"',
|
||||
"*",
|
||||
"[",
|
||||
"]",
|
||||
"{",
|
||||
"}",
|
||||
":",
|
||||
"(",
|
||||
")",
|
||||
"<",
|
||||
">",
|
||||
"Â",
|
||||
"The text ends",
|
||||
"The story ends",
|
||||
"The text is",
|
||||
"The story is",
|
||||
]
|
||||
}
|
||||
|
||||
class SplitArgs(argparse.Action):
|
||||
|
||||
Reference in New Issue
Block a user