File size: 443 Bytes
9e8c21a
b43643f
9e8c21a
b43643f
 
9e8c21a
b43643f
 
 
 
9e8c21a
b43643f
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

import pickle

# Replace 'your_pickle_file.pkl' with the path to your pickle file
pickle_file_path = 'embeddings/fast/sentence-transformers-all-mpnet-base-v2.pkl'

# Open the pickle file in read-binary mode
with open(pickle_file_path, 'rb') as file:
    # Load the contents of the pickle file
    data = pickle.load(file)

output_file_path = 'output_file.txt'
with open(output_file_path, 'w') as output_file:
    output_file.write(str(data))