52dd8f17b382dea2ddaf3b4054d7845c8c3b4f72,pycorrector/seq2seq/fce_reader.py,FCEReader,read_samples_by_string,#FCEReader#,26
Before Change
elif not dropout_token:
source.append(token)
else:
source.append(token)
yield source, target
def unknown_token(self):
return FCEReader.UNKNOWN_TOKEN
After Change
line_src = f.readline()
line_dst = f.readline()
if line_src and line_dst:
source = line_src.lower()[5:].strip().split()
target = line_dst.lower()[5:].strip().split()
if self.config.enable_data_dropout:
new_source = []
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: shibing624/pycorrector
Commit Name: 52dd8f17b382dea2ddaf3b4054d7845c8c3b4f72
Time: 2018-03-29
Author: 507153809@qq.com
File Name: pycorrector/seq2seq/fce_reader.py
Class Name: FCEReader
Method Name: read_samples_by_string
Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 4eb75141ee285b24cdfb0d5a5940da6ee5c59f75
Time: 2018-07-06
Author: takaesu235@gmail.com
File Name: DeepExploit/deep_plugin/classifier_signature/Classifier_signature.py
Class Name: ClassifierSignature
Method Name: identify_product
Project Name: biotite-dev/biotite
Commit Name: e0e0ab2eb7372571a24d4beea731f7e39b45079d
Time: 2020-11-16
Author: tom.mueller@beachouse.de
File Name: doc/examples/scripts/structure/base_pairs.py
Class Name:
Method Name: