Skip to content

Commit

Permalink
Merge pull request #151 from BroKun/brokun_dev
Browse files Browse the repository at this point in the history
fix: override _load_data instead of load_data
  • Loading branch information
EdwinInAu authored Aug 27, 2024
2 parents 4ff3a25 + 4b75cab commit c07f50b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class LineTxtReader(Reader):

def load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Document]:
def _load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Document]:
dlist = []

with open(fpath, 'r', encoding='utf-8') as file:
Expand All @@ -26,7 +26,7 @@ def load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Docume
class TxtReader(Reader):
"""Txt reader."""

def load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Document]:
def _load_data(self, fpath: Path, ext_info: Optional[Dict] = None) -> List[Document]:

with open(fpath, 'r', encoding='utf-8') as file:

Expand Down

0 comments on commit c07f50b

Please sign in to comment.