Skip to content

missing file in Data stated in constants.py #5

@FrankYFTang

Description

@FrankYFTang

I try to run the basic test but mostly failed

It seems you coded some data path in constatnts.py but those files do not exist.

ftang@ftang4:~/lstm_word_segmentation$ python3 test/test_helpers.py
Traceback (most recent call last):
File "test/test_helpers.py", line 3, in
from lstm_word_segmentation.helpers import is_ascii, diff_strings, sigmoid
File "/usr/local/google/home/ftang/lstm_word_segmentation/lstm_word_segmentation/helpers.py", line 2, in
from . import constants
File "/usr/local/google/home/ftang/lstm_word_segmentation/lstm_word_segmentation/constants.py", line 7, in
THAI_GRAPH_CLUST_RATIO = np.load(str(path), allow_pickle=True).item()
File "/usr/lib/python3/dist-packages/numpy/lib/npyio.py", line 416, in load
fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/google/home/ftang/lstm_word_segmentation/Data/Thai_graph_clust_ratio.npy'
ft

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions