Skip to content

Commit

Permalink
Raise exception when corpus file is not found (#103, #111)
Browse files Browse the repository at this point in the history
  • Loading branch information
lovit committed Oct 10, 2020
1 parent 7e0fbd1 commit 7cc277b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Korpora/korpus_modu_messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ def __init__(self, root_dir_or_paths, force_download=False):
paths = sorted(glob(root_dir_or_paths))
else:
paths = root_dir_or_paths
if not paths:
raise ValueError('Not found corpus files. Check `root_dir_or_paths`')
self.train = KorpusData('모두의_메신저_말뭉치(conversation).train', load_modu_messenger(paths))


Expand Down

0 comments on commit 7cc277b

Please sign in to comment.