Skip to content

Can preprocessing of documents be saved as text file to be read back in? #1919

Discussion options

You must be logged in to vote

Hi @asharm0662! The convert_files_to_dicts method in the tutorial you linked will return a list of dictionaries. You can easily save them as a json-file like this:

import json
with open(FILE_NAME, "w") as json_file:
    json.dump(dicts, json_file)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@asharm0662
Comment options

Answer selected by asharm0662
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants