Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion chebai/preprocessing/reader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import inspect
import os
import sys
from abc import ABC
Expand Down Expand Up @@ -39,7 +40,7 @@ def __init__(
if collator_kwargs is None:
collator_kwargs = dict()
self.collator = self.COLLATOR(**collator_kwargs)
self.dirname = os.path.dirname(__file__)
self.dirname = os.path.dirname(inspect.getfile(self.__class__))
self._token_path = token_path

def _get_raw_data(self, row: Dict[str, Any]) -> Any:
Expand Down