You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error on one of my datasets, is this a known problem? I've checked the text file and there are no empty (zero-length or whitespace-only) lines.
Traceback (most recent call last):
File "code/augment.py", line 55, in <module>
gen_eda(args.input, output, alpha=alpha, num_aug=num_aug)
File "code/augment.py", line 44, in gen_eda
aug_sentences = eda(sentence, alpha_sr=alpha, alpha_ri=alpha, alpha_rs=alpha, p_rd=alpha, num_aug=num_aug)
File "/home/user/Desktop/eda_nlp/code/eda.py", line 193, in eda
a_words = random_insertion(words, n_ri)
File "/home/user/Desktop/eda_nlp/code/eda.py", line 153, in random_insertion
add_word(new_words)
File "/home/user/Desktop/eda_nlp/code/eda.py", line 160, in add_word
random_word = new_words[random.randint(0, len(new_words)-1)]
File "/home/stc/miniconda3/lib/python3.7/random.py", line 222, in randint
return self.randrange(a, b+1)
File "/home/stc/miniconda3/lib/python3.7/random.py", line 200, in randrange
raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
The text was updated successfully, but these errors were encountered:
Hello! Thank you for sharing your code.
I got this error on one of my datasets, is this a known problem? I've checked the text file and there are no empty (zero-length or whitespace-only) lines.
The text was updated successfully, but these errors were encountered: