Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxWarning: invalid escape sequence '\.' "\.\s|\!\s|\?\s" #91

Open
chiwuyin opened this issue Dec 27, 2024 · 1 comment
Open

SyntaxWarning: invalid escape sequence '\.' "\.\s|\!\s|\?\s" #91

chiwuyin opened this issue Dec 27, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@chiwuyin
Copy link

windows系统,部署安装运行时报以下warning.

python chatchat/cli.py init
D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\ali_text_splitter.py:18: SyntaxWarning: invalid escape sequence '\s'
text = re.sub("\s", " ", text)
D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_recursive_text_splitter.py:45: SyntaxWarning: invalid escape sequence '.'
".\s|!\s|?\s",
D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_recursive_text_splitter.py:46: SyntaxWarning: invalid escape sequence '\s'
";|;\s",
D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_recursive_text_splitter.py:47: SyntaxWarning: invalid escape sequence '\s'
",|,\s",
D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_text_splitter.py:16: SyntaxWarning: invalid escape sequence '\s'
text = re.sub("\s", " ", text)
D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_text_splitter.py:32: SyntaxWarning: invalid escape sequence '\s'
text = re.sub("\s", " ", text)

@yuehua-s yuehua-s self-assigned this Jan 7, 2025
@yuehua-s
Copy link
Collaborator

yuehua-s commented Jan 7, 2025

windows系统,部署安装运行时报以下warning.

python chatchat/cli.py init D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\ali_text_splitter.py:18: SyntaxWarning: invalid escape sequence '\s' text = re.sub("\s", " ", text) D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_recursive_text_splitter.py:45: SyntaxWarning: invalid escape sequence '.' ".\s|!\s|?\s", D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_recursive_text_splitter.py:46: SyntaxWarning: invalid escape sequence '\s' ";|;\s", D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_recursive_text_splitter.py:47: SyntaxWarning: invalid escape sequence '\s' ",|,\s", D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_text_splitter.py:16: SyntaxWarning: invalid escape sequence '\s' text = re.sub("\s", " ", text) D:\Projects\LangGraph-Chatchat\chatchat-server\chatchat\server\file_rag\text_splitter\chinese_text_splitter.py:32: SyntaxWarning: invalid escape sequence '\s' text = re.sub("\s", " ", text)

没有 windows 环境,待合并后辛苦再帮忙测试下。https://github.com/chatchat-space/LangGraph-Chatchat/pull/95/files

@yuehua-s yuehua-s added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants