forgot to sanitize mentions in output
This commit is contained in:
parent
97a2f5de00
commit
5db218e362
2 changed files with 7 additions and 2 deletions
2
third_party/utils.py
vendored
2
third_party/utils.py
vendored
|
|
@ -54,7 +54,7 @@ def load_config(cfg_path):
|
|||
|
||||
return cfg
|
||||
|
||||
def remove_mention(cfg, sentence):
|
||||
def remove_mentions(cfg, sentence):
|
||||
# optionally remove mentions
|
||||
if cfg['mention_handling'] == 1:
|
||||
return re.sub(r"^\S*@\u200B\S*\s?", "", sentence)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue