Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError #59

Open
Tijana37 opened this issue Feb 7, 2022 · 1 comment
Open

UnicodeDecodeError #59

Tijana37 opened this issue Feb 7, 2022 · 1 comment

Comments

@Tijana37
Copy link

Tijana37 commented Feb 7, 2022

Traceback (most recent call last):
File "Main.py", line 9, in
from utility.batch_test import *
File "Model/utility/batch_test.py", line 42, in
data_generator = KGAT_loader(args=args, path=args.data_path + args.dataset)
File "Model/utility/loader_kgat.py", line 16, in init
super().init(args, path)
File "Model/utility/load_data.py", line 38, in init
self.kg_data, self.kg_dict, self.relation_dict = self._load_kg(kg_file)
File "Model/utility/load_data.py", line 81, in _load_kg
kg_np = np.loadtxt(file_name, dtype=np.int32)
File "/usr/local/lib/python3.7/dist-packages/numpy/lib/npyio.py", line 1092, in loadtxt
first_line = next(fh)
File "/usr/lib/python3.7/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 11: invalid start byte

@Tolucaa
Copy link

Tolucaa commented May 7, 2024

hey, how did you resolve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants