We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nlpaug/nlpaug/model/lang_models/lambada.py
Line 58 in f34e7cd
Orig:
input_text = 'label_{} {}'.format(label, self.sep_token)
I believe it should be:
input_text = '{} {}'.format(label, self.sep_token)
Because the original input format mismatches the format in the pre-processing script:
def prepare_mlm_data(labels, texts, output_file_path, sep_token): if not os.path.exists(output_file_path): os.makedirs(output_file_path) with open(os.path.join(output_file_path, 'mlm_data.txt'), 'w') as f: for label, text in zip(labels, texts): f.write(' '.join([str(label), sep_token, text]) + '\n')
I have tried to generate samples by your code, but the generated text is very strange. After I made the changes above, the results become normal.
The text was updated successfully, but these errors were encountered:
You are right. This fix will be included in the coming release
Sorry, something went wrong.
[#295] fix incorrect lambda label
872133a
No branches or pull requests
nlpaug/nlpaug/model/lang_models/lambada.py
Line 58 in f34e7cd
Orig:
I believe it should be:
Because the original input format mismatches the format in the pre-processing script:
I have tried to generate samples by your code, but the generated text is very strange. After I made the changes above, the results become normal.
The text was updated successfully, but these errors were encountered: