Skip to content

Commit

Permalink
add file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sfluegel committed Nov 29, 2023
1 parent ac4017b commit 17a8760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chebai/preprocessing/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(self, *args, **kwargs):
dirname = os.path.dirname(__file__)
os.makedirs(os.path.join(dirname, "bin", self.name()), exist_ok=True)
self.tokens_path = os.path.join(dirname, "bin", self.name(), "tokens.txt")
with open(self.tokens_path, "r") as pk:
with open(self.tokens_path, "r+") as pk:
self.cache = [x.strip() for x in pk]

def _get_token_index(self, token):
Expand Down

0 comments on commit 17a8760

Please sign in to comment.