Skip to content

Commit

Permalink
Update data_loader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
SanBingYouYong committed May 10, 2023
1 parent aa65d2f commit 717029a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
DATAS_CONFIG = "./loader/datas.json"


class INGDataLoader():
class PlainDataLoader():
def __init__(self, config_path: str=DATAS_CONFIG) -> None:
self._path = config_path
with open(config_path, 'r', encoding='utf-8') as config:
Expand Down Expand Up @@ -58,7 +58,7 @@ def extract_with_ids(self, ids: list) -> list:


if __name__ == "__main__":
loader = INGDataLoader()
loader = PlainDataLoader()
print(loader.id_table)
print(
loader.body_extractor("wudai-huajianji")[-1]
Expand Down

0 comments on commit 717029a

Please sign in to comment.