chore: fix typos in the tests directory (#36813)

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* chore: fix typos in the tests

* fix: format codes

* chore: fix copy mismatch issue

* fix: format codes

* chore: fix copy mismatch issue

* chore: fix copy mismatch issue

* chore: fix copy mismatch issue

* chore: restore previous words

* chore: revert unexpected changes
This commit is contained in:
Afanti
2025-03-21 17:20:05 +08:00
committed by GitHub
parent 0adbc873d0
commit 26c83490d2
78 changed files with 181 additions and 148 deletions

View File

@@ -574,7 +574,7 @@ class FlaxT5ModelIntegrationTests(unittest.TestCase):
@slow
def test_small_integration_test(self):
"""
For comparision run:
For comparison run:
>>> import t5 # pip install t5==0.7.1
>>> from t5.data.sentencepiece_vocabulary import SentencePieceVocabulary
@@ -604,7 +604,7 @@ class FlaxT5ModelIntegrationTests(unittest.TestCase):
@slow
def test_small_v1_1_integration_test(self):
"""
For comparision run:
For comparison run:
>>> import t5 # pip install t5==0.7.1
>>> from t5.data.sentencepiece_vocabulary import SentencePieceVocabulary
@@ -634,7 +634,7 @@ class FlaxT5ModelIntegrationTests(unittest.TestCase):
@slow
def test_small_byt5_integration_test(self):
"""
For comparision run:
For comparison run:
>>> import t5 # pip install t5==0.9.1
>>> path_to_byt5_small_checkpoint = '<fill_in>'

View File

@@ -1208,7 +1208,7 @@ class T5ModelIntegrationTests(unittest.TestCase):
@slow
def test_small_integration_test(self):
"""
For comparision run:
For comparison run:
>>> import t5 # pip install t5==0.7.1
>>> from t5.data.sentencepiece_vocabulary import SentencePieceVocabulary
@@ -1234,7 +1234,7 @@ class T5ModelIntegrationTests(unittest.TestCase):
@slow
def test_small_v1_1_integration_test(self):
"""
For comparision run:
For comparison run:
>>> import t5 # pip install t5==0.7.1
>>> from t5.data.sentencepiece_vocabulary import SentencePieceVocabulary
@@ -1260,7 +1260,7 @@ class T5ModelIntegrationTests(unittest.TestCase):
@slow
def test_small_byt5_integration_test(self):
"""
For comparision run:
For comparison run:
>>> import t5 # pip install t5==0.9.1
>>> path_to_byt5_small_checkpoint = '<fill_in>'

View File

@@ -618,7 +618,7 @@ class TFT5ModelIntegrationTests(unittest.TestCase):
@slow
def test_small_integration_test(self):
"""
For comparision run:
For comparison run:
>>> import t5 # pip install t5==0.7.1
>>> from t5.data.sentencepiece_vocabulary import SentencePieceVocabulary
@@ -644,7 +644,7 @@ class TFT5ModelIntegrationTests(unittest.TestCase):
@slow
def test_small_v1_1_integration_test(self):
"""
For comparision run:
For comparison run:
>>> import t5 # pip install t5==0.7.1
>>> from t5.data.sentencepiece_vocabulary import SentencePieceVocabulary
@@ -670,7 +670,7 @@ class TFT5ModelIntegrationTests(unittest.TestCase):
@slow
def test_small_byt5_integration_test(self):
"""
For comparision run:
For comparison run:
>>> import t5 # pip install t5==0.9.1
>>> path_to_byt5_small_checkpoint = '<fill_in>'

View File

@@ -498,7 +498,7 @@ class CommonSpmIntegrationTests(unittest.TestCase):
tokenizer.add_special_tokens(
{"additional_special_tokens": [AddedToken("<extra_id_0>", rstrip=False, lstrip=False)]}
)
# TODO ArthurZ the above is necessary as addedTokens / intialization sucks. Trie is not correctly created
# TODO ArthurZ the above is necessary as addedTokens / initialization sucks. Trie is not correctly created
# So the extra ids are split....
cls.tokenizer = tokenizer