brightly-ai / playground.py
beweinreich's picture
add any new mappings to the stored mappings dictionary
b43643f
raw
history blame contribute delete
No virus
443 Bytes
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))