Skip to content

Commit 1be32ca

Browse files
authored
GH Actions: Use v4 for upload/download artifact (#389)
* Use v4 for upload/download artifact GH Action * Fix formatting * Bump evaluate version
1 parent 1334bfd commit 1be32ca

File tree

5 files changed

+26
-26
lines changed

5 files changed

+26
-26
lines changed

.github/workflows/publish-to-pypi.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Build a binary wheel and a source tarball
2323
run: python3 -m build
2424
- name: Store the distribution packages
25-
uses: actions/upload-artifact@v3
25+
uses: actions/upload-artifact@v4
2626
with:
2727
name: python-package-distributions
2828
path: dist/
@@ -42,7 +42,7 @@ jobs:
4242

4343
steps:
4444
- name: Download all the dists
45-
uses: actions/download-artifact@v3
45+
uses: actions/download-artifact@v4
4646
with:
4747
name: python-package-distributions
4848
path: dist/
@@ -63,7 +63,7 @@ jobs:
6363

6464
steps:
6565
- name: Download all the dists
66-
uses: actions/download-artifact@v3
66+
uses: actions/download-artifact@v4
6767
with:
6868
name: python-package-distributions
6969
path: dist/

.github/workflows/publish-to-test-pypi.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Build a binary wheel and a source tarball
2323
run: python3 -m build
2424
- name: Store the distribution packages
25-
uses: actions/upload-artifact@v3
25+
uses: actions/upload-artifact@v4
2626
with:
2727
name: python-package-distributions
2828
path: dist/
@@ -42,7 +42,7 @@ jobs:
4242

4343
steps:
4444
- name: Download all the dists
45-
uses: actions/download-artifact@v3
45+
uses: actions/download-artifact@v4
4646
with:
4747
name: python-package-distributions
4848
path: dist/

assets/ar/sequence_tagging_and_information_extraction/diacritization/BibleMaghrebi_Random.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ def prompt(input_sample):
3030

3131
def post_process(response):
3232
diacritics = [
33-
"\u064E", # Fatha
34-
"\u064B", # Fathatan
35-
"\u064F", # Damma
36-
"\u064C", # Dammatan
33+
"\u064e", # Fatha
34+
"\u064b", # Fathatan
35+
"\u064f", # Damma
36+
"\u064c", # Dammatan
3737
"\u0650", # Kasra
38-
"\u064D", # Kasratan
38+
"\u064d", # Kasratan
3939
"\u0652", # Sukun
4040
"\u0651", # Shadda
4141
None,
4242
]
4343

4444
shadda_diacritics = [
45-
"\u064E", # Fatha
46-
"\u064B", # Fathatan
47-
"\u064F", # Damma
48-
"\u064C", # Dammatan
45+
"\u064e", # Fatha
46+
"\u064b", # Fathatan
47+
"\u064f", # Damma
48+
"\u064c", # Dammatan
4949
"\u0650", # Kasra
50-
"\u064D", # Kasratan
50+
"\u064d", # Kasratan
5151
None,
5252
]
5353

assets/ar/sequence_tagging_and_information_extraction/diacritization/WikiNews_Random.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,24 @@ def prompt(input_sample):
3030

3131
def post_process(response):
3232
diacritics = [
33-
"\u064E", # Fatha
34-
"\u064B", # Fathatan
35-
"\u064F", # Damma
36-
"\u064C", # Dammatan
33+
"\u064e", # Fatha
34+
"\u064b", # Fathatan
35+
"\u064f", # Damma
36+
"\u064c", # Dammatan
3737
"\u0650", # Kasra
38-
"\u064D", # Kasratan
38+
"\u064d", # Kasratan
3939
"\u0652", # Sukun
4040
"\u0651", # Shadda
4141
None,
4242
]
4343

4444
shadda_diacritics = [
45-
"\u064E", # Fatha
46-
"\u064B", # Fathatan
47-
"\u064F", # Damma
48-
"\u064C", # Dammatan
45+
"\u064e", # Fatha
46+
"\u064b", # Fathatan
47+
"\u064f", # Damma
48+
"\u064c", # Dammatan
4949
"\u0650", # Kasra
50-
"\u064D", # Kasratan
50+
"\u064d", # Kasratan
5151
None,
5252
]
5353

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ install_requires =
3030
scikit-learn==1.2.2
3131
tenacity==8.2.2
3232
websockets==11.0.3
33-
evaluate==0.4.2
33+
evaluate==0.4.3
3434
rouge-score==0.1.2
3535
absl-py==2.1.0
3636
GitPython==3.1.43

0 commit comments

Comments
 (0)