Skip to content

Commit

Permalink
Fixed bug in #131
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Jul 23, 2022
1 parent 165f822 commit c268ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arekit/contrib/source/rusentrel/io_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def __get_root_by_index(doc_id, version, keep_etalon=False):
assert(RuSentRelIOUtils.__is_supported(version))
assert(isinstance(version, RuSentRelVersions))
assert(isinstance(doc_id, int))
other_dir = RuSentRelIOUtils.ETALON_FOLDER if keep_etalon else RuSentRelIOUtils.TRAIN_FOLDER
test_indices = set(RuSentRelIOUtils.__iter_indicies_from_dataset(version, RuSentRelIOUtils.TRAIN_FOLDER))
other_dir = RuSentRelIOUtils.ETALON_FOLDER if keep_etalon else RuSentRelIOUtils.TEST_FOLDER
test_indices = set(RuSentRelIOUtils.__iter_indicies_from_dataset(version, RuSentRelIOUtils.TEST_FOLDER))
return other_dir if doc_id in test_indices else RuSentRelIOUtils.TRAIN_FOLDER

@staticmethod
Expand Down

0 comments on commit c268ec6

Please sign in to comment.