You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/python-publish.yml
+1-8Lines changed: 1 addition & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -46,16 +46,9 @@ jobs:
46
46
# IMPORTANT: this permission is mandatory for trusted publishing
47
47
id-token: write
48
48
49
-
# Dedicated environments with protections for publishing are strongly recommended.
50
-
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
51
49
environment:
52
50
name: pypi
53
-
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
54
-
# url: https://pypi.org/p/YOURPROJECT
55
-
#
56
-
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
57
-
# ALTERNATIVE: exactly, uncomment the following line instead:
Copy file name to clipboardExpand all lines: README-ptbr.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
Extrator de Informação Aberta para língua portuguesa baseado em análise de dependências (SpaCy + Stanza).
5
5
6
-
Este guia mostra todas as formas de rodar o projeto pelo `src/dptoie_python/main.py`, com todas as variações de argumentos, tanto localmente (Poetry) quanto com Docker/Docker Compose.
6
+
Este guia mostra todas as formas de rodar o projeto pelo `src/dptoie/main.py`, com todas as variações de argumentos, tanto localmente (Poetry) quanto com Docker/Docker Compose.
7
7
8
8
- Requisitos mínimos: Python 3.12+, Poetry, ou Docker (opcional)
9
9
- Modelos: o Stanza faz o download automático na primeira execução. Você pode definir `STANZA_RESOURCES_DIR` para usar um diretório local de modelos (ex.: `./models/.stanza_resources`).
poetry run python3 src/dptoie_python/main.py -i /dptoie_python/inputs/teste.conll -it conll -o /dptoie_python/outputs/out.json -ot json -cc -sc -a -t
115
+
poetry run python3 src/dptoie/main.py -i /dptoie_python/inputs/teste.conll -it conll -o /dptoie_python/outputs/out.json -ot json -cc -sc -a -t
116
116
```
117
117
118
118
Observação: ajuste os caminhos de `-i` e `-o` conforme necessário; use `-it txt` quando a entrada for texto linha-a-linha.
@@ -122,7 +122,7 @@ Observação: ajuste os caminhos de `-i` e `-o` conforme necessário; use `-it t
122
122
O arquivo `docker-compose.yml` já inclui o serviço `dptoie_python`. Você pode editar a linha `command:` para o cenário desejado. Exemplo de comando recomendado:
123
123
124
124
```yaml
125
-
command: poetry run python3 src/dptoie_python/main.py -i /dptoie_python/inputs/teste.conll -it conll -o /dptoie_python/outputs/out.json -ot json -cc -sc -a -t
125
+
command: poetry run python3 src/dptoie/main.py -i /dptoie_python/inputs/teste.conll -it conll -o /dptoie_python/outputs/out.json -ot json -cc -sc -a -t
126
126
```
127
127
128
128
Então rode:
@@ -132,7 +132,7 @@ docker compose up --build
132
132
133
133
Use o comando `run` para executar outros comandos personalizados:
134
134
```bash
135
-
docker compose run dptoie_python poetry run python3 src/dptoie_python/main.py -i /dptoie_python/inputs/ceten-200.txt -it txt -o /dptoie_python/outputs/out.csv -ot csv -cc
135
+
docker compose run dptoie_python poetry run python3 src/dptoie/main.py -i /dptoie_python/inputs/ceten-200.txt -it txt -o /dptoie_python/outputs/out.csv -ot csv -cc
Copy file name to clipboardExpand all lines: README.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Open Information Extractor for Portuguese based on dependency analysis (SpaCy + Stanza).
4
4
5
-
This guide shows all ways to run the project via `src/dptoie_python/main.py`, with all argument variations, both locally (Poetry) and with Docker / Docker Compose.
5
+
This guide shows all ways to run the project via `src/dptoie/main.py`, with all argument variations, both locally (Poetry) and with Docker / Docker Compose.
6
6
7
7
- Minimum requirements: Python 3.12+, Poetry, or Docker (optional)
8
8
- Models: Stanza downloads models automatically on first run. You can set `STANZA_RESOURCES_DIR` to use a local models directory (e.g., `./models/.stanza_resources`).
poetry run python3 src/dptoie_python/main.py -i /dptoie_python/inputs/teste.conll -it conll -o /dptoie_python/outputs/out.json -ot json -cc -sc -a -t
114
+
poetry run python3 src/dptoie/main.py -i /dptoie_python/inputs/teste.conll -it conll -o /dptoie_python/outputs/out.json -ot json -cc -sc -a -t
115
115
```
116
116
117
117
Note: adjust the `-i` and `-o` paths as needed; use `-it txt` when the input is line-by-line text.
@@ -121,7 +121,7 @@ Note: adjust the `-i` and `-o` paths as needed; use `-it txt` when the input is
121
121
The `docker-compose.yml` file already includes the `dptoie_python` service. You can edit the `command:` line for the desired scenario. Example recommended command:
122
122
123
123
```yaml
124
-
command: poetry run python3 src/dptoie_python/main.py -i /dptoie_python/inputs/teste.conll -it conll -o /dptoie_python/outputs/out.json -ot json -cc -sc -a -t
124
+
command: poetry run python3 src/dptoie/main.py -i /dptoie_python/inputs/teste.conll -it conll -o /dptoie_python/outputs/out.json -ot json -cc -sc -a -t
125
125
```
126
126
127
127
Then run:
@@ -131,7 +131,7 @@ docker compose up --build
131
131
132
132
Use `run` to execute other custom commands:
133
133
```bash
134
-
docker compose run dptoie_python poetry run python3 src/dptoie_python/main.py -i /dptoie_python/inputs/ceten-200.txt -it txt -o /dptoie_python/outputs/out.csv -ot csv -cc
134
+
docker compose run dptoie_python poetry run python3 src/dptoie/main.py -i /dptoie_python/inputs/ceten-200.txt -it txt -o /dptoie_python/outputs/out.csv -ot csv -cc
Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
[tool.poetry]
2
-
name = "dptoie_python"
2
+
name = "dptoie"
3
3
version = "0.1.0"
4
4
description = "DPToie-Python is an Open Information Extractor for Portuguese language that employs Dependence Parser and Part of Speech Tagger models with Stanford CoreNLP."
0 commit comments