diff --git a/Tests/EndToEndTests/CNTKv2Python/Examples/htk_deserializer_test.py b/Tests/EndToEndTests/CNTKv2Python/Examples/htk_deserializer_test.py index 284e26c68826..e8151d3ee5d8 100644 --- a/Tests/EndToEndTests/CNTKv2Python/Examples/htk_deserializer_test.py +++ b/Tests/EndToEndTests/CNTKv2Python/Examples/htk_deserializer_test.py @@ -5,6 +5,7 @@ import os abs_path = os.path.dirname(os.path.abspath(__file__)) data_path = os.path.join(abs_path, "..", "..", "..", "..", "Examples", "Speech", "AN4", "Data") +e2e_data_path="../../../../Tests/EndToEndTests/Speech/Data/" def test_htk_deserializers(): mbsize = 640 @@ -61,7 +62,7 @@ def test_multiple_mlf_files(): num_classes = 132 context = 2 - test_mlf_path = "../../../../Tests/EndToEndTests/Speech/Data/glob_00001.mlf" + test_mlf_path = e2e_data_path+"glob_00001.mlf" features_file = "glob_0000.scp" label_files = [ "glob_0000.mlf", test_mlf_path] @@ -91,7 +92,7 @@ def test_mlf_binary_files(): fd = HTKFeatureDeserializer(StreamDefs( amazing_features = StreamDef(shape=feature_dim, context=(context,context), scp=features_file))) - ld = HTKMLFBinaryDeserializer(StreamDefs(awesome_labels = StreamDef(shape=num_classes, mlf="mlf2.bin"))) + ld = HTKMLFBinaryDeserializer(StreamDefs(awesome_labels = StreamDef(shape=num_classes, mlf=e2e_data_path + "mlf2.bin"))) # Make sure we can read at least one minibatch. mbsource = MinibatchSource([fd,ld]) @@ -107,7 +108,7 @@ def test_multiple_mlf_binary_files(): context = 2 features_file = "glob_0000.scp" - label_files = [ "mlf2.bin", "mlf2.bin"] + label_files = [ e2e_data_path+"mlf2.bin", e2e_data_path+"mlf2.bin"] fd = HTKFeatureDeserializer(StreamDefs( amazing_features = StreamDef(shape=feature_dim, context=(context,context), scp=features_file)))