-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
因為GeminiAPI回應Safety(有色色語句) 所以用上DeepL API先翻譯成簡體中文再翻譯回繁體 加入了NLP方式切段
- Loading branch information
Showing
3 changed files
with
135 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,13 @@ | ||
@echo off | ||
|
||
REM 更新 pip 和安装工具 | ||
pip install -U pip setuptools wheel | ||
|
||
|
||
pip install -U 'spacy[cuda110]' | ||
python -m spacy download zh_core_web_sm | ||
python -m spacy download en_core_web_sm | ||
python -m spacy download ja_core_news_sm | ||
|
||
|
||
python main.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ requests | |
openai==0.28 | ||
requests | ||
google-generativeai | ||
langdetect | ||
spacy[cuda110] | ||
|