Skip to content

Commit 1d86810

Browse files
committed
refactor(ai/spacy) - NLP
1 parent 97af348 commit 1d86810

File tree

11 files changed

+23
-28
lines changed

11 files changed

+23
-28
lines changed

packages/py-ai/Taskfile.yml

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ includes:
1717
dir: try-autogpt/
1818
optional: true
1919

20+
spacy:
21+
taskfile: try-spacy/
22+
dir: try-spacy/
23+
optional: true
24+
2025
#
2126
# global vars: https://taskfile.dev/#/usage?id=variables
2227
#

packages/py-ai/readme.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# python AI(LLM/GPT):
22

3-
- AI 相关的生态库 & 项目 验证
3+
- 人工智能 AI(Artificial Intelligence) 相关的生态库 & 项目 验证
4+
- 机器学习 ML(Machine Learning) 相关的生态库 & 项目 验证
5+
- NLP(Natural Language Processing) 相关的生态库 & 项目 验证
6+
- 语音识别相关的生态库 & 项目 验证
7+
- 语音合成相关的生态库 & 项目 验证

packages/py-try/try-spacy/Taskfile.yml renamed to packages/py-ai/try-spacy/Taskfile.yml

+13-22
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,34 @@ env:
1515

1616

1717
tasks:
18+
poetry:
19+
aliases: [ 'p', 'pm' ]
20+
cmds:
21+
- poetry {{.CLI_ARGS}} # install, update
1822

1923
install:
24+
aliases: [ 'i' ]
2025
cmds:
2126
- poetry install
2227

2328
add:
29+
aliases: [ 'a' ]
2430
cmds:
25-
- poetry add typer[all]
26-
- poetry add spacy[apple] # macos + m1
31+
- poetry add {{.CLI_ARGS}} # --dev
2732

28-
add:dev:
33+
add:all:
34+
aliases: [ 'aa' ]
2935
cmds:
30-
- poetry add ${PACKAGE} --dev
36+
- poetry add typer[all]
37+
- poetry add spacy[apple] # macos + m1
3138

3239
download:
40+
aliases: [ 'dl' ]
3341
cmds:
3442
- poetry run python -m spacy download en_core_web_sm # english
3543
- poetry run python -m spacy download ja_core_news_sm # japanese
3644

37-
update:
38-
cmds:
39-
- poetry update
40-
41-
config:
42-
cmds:
43-
- poetry config virtualenvs.in-project false --local
44-
- poetry config virtualenvs.create false --local
45-
46-
env:
47-
cmds:
48-
- poetry
49-
- poetry env list
50-
- poetry cache list
51-
- poetry debug info
52-
- poetry debug resolve
53-
54-
5545
run:
46+
aliases: [ 'r' ]
5647
cmds:
5748
- poetry run python src/try_spacy/run01.py

packages/py-try/Taskfile.yml

-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ includes:
1616
dir: try-typer/
1717
optional: true
1818

19-
spacy:
20-
taskfile: try-spacy/
21-
dir: try-spacy/
22-
optional: true
23-
2419
jieba:
2520
aliases: [ "j" ]
2621
taskfile: try-jieba/

0 commit comments

Comments
 (0)