mirror of
https://github.com/chinese-poetry/chinese-poetry.git
synced 2025-12-24 13:18:01 +08:00
Update data_loader.py
This commit is contained in:
committed by
GitHub
parent
aa65d2fa5e
commit
717029ade7
@@ -5,7 +5,7 @@ import os
|
||||
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:
|
||||
@@ -58,7 +58,7 @@ class INGDataLoader():
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
loader = INGDataLoader()
|
||||
loader = PlainDataLoader()
|
||||
print(loader.id_table)
|
||||
print(
|
||||
loader.body_extractor("wudai-huajianji")[-1]
|
||||
|
||||
Reference in New Issue
Block a user