freemt
Ready 0.1.0a0
bccd6e8
raw
history blame
472 Bytes
"""Prep utils and data."""
# pylint: disable=invalid-name
from pathlib import Path
from logzero import logger
data_dir = Path(__file__).with_name("data")
try:
text1 = Path(data_dir, "test-en.txt").read_text()
except Exception as exc:
logger.eror("rea text1 error: %s, setting to ''", exc)
text1 = ""
try:
text2 = Path(data_dir, "test-zh.txt").read_text()
except Exception as exc:
logger.eror("rea text2 error: %s, setting to ''", exc)
text2 = ""