Open HaomingYu1997 opened 1 year ago
The error message suggests that the input file "Train_cntk_text.txt.txt" cannot be found or opened. The path of the file seems to be incorrect since it contains duplicate ".txt" extensions. You may want to check the file path and make sure it is correct. Additionally, you may want to try using an absolute file path instead of a relative path. To do so, you can use the os module to get the absolute path of the file as follows:
import os
file_path = "Train_cntk_text.txt.txt"
abs_path = os.path.abspath(file_path)
# pass abs_path to your CNTK code
This will give you the absolute path of the file, which you can use to load the data in your CNTK code.
I use Visual Studio 2022 to run the SequenceClassification.py. The Python version I am using is 3.6.8, the CNTK version is cntk-gpu-2.7. However, when I run the program these errors came up:
The call stacks are
Stack trace:
I have looked at issue #2999. The suggestion is: In the path in your code, add .txt at the end, e.g. '../../Tests/EndToEndTests/Image/Data\Train_cntk_text.txt.txt'. This didn't work for me.
Are they any other suggestions?