Skip to content

Commit

Permalink
Merge pull request #327 from zeeguu/tokenization-deployment-fixes
Browse files Browse the repository at this point in the history
Update test_tokenizer.py
  • Loading branch information
mircealungu authored Feb 10, 2025
2 parents cd2e804 + ddb103d commit 50f142f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zeeguu/core/test/test_tokenizer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from zeeguu.core.test.model_test_mixin import ModelTestMixIn
from zeeguu.core.tokenization import get_tokenizer, TokenizerModel
from zeeguu.core.test.rules.language_rule import LanguageRule
from zeeguu.core.test.mocking_the_web import TESTDATA_FOLDER
import os
import random

Expand Down Expand Up @@ -70,9 +71,7 @@ def _generate_random_numbers(cls, n=1000, max_range=100000):

@classmethod
def _load_example_file(cls, filename):
path_to_file = os.path.join(
"/Zeeguu-API", "zeeguu", "core", "test", "test_data", filename
)
path_to_file = os.path.join(TESTDATA_FOLDER, filename)
example_list = []
with open(path_to_file, "r", encoding="utf-8") as f:
# Skip the first line.
Expand Down

0 comments on commit 50f142f

Please sign in to comment.