b01dbb875df263184060a27ebd9a829a20703119,torchnlp/datasets/snli.py,,snli_dataset,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,10
Before Change
"premise_transitions": get_transitions(line["sentence1_binary_parse"]),
"hypothesis_transitions": get_transitions(line["sentence2_binary_parse"])
})
ret.append(Dataset(examples) )
if len(ret) == 1:
return ret[0]
After Change
download_file_maybe_extract(url=url, directory=directory, check_files=check_files)
get_transitions = lambda parse: ["reduce" if t == ")" else "shift" for t in parse if t != "("]
ret = []
splits = [(train, train_filename), (dev, dev_filename), (test, test_filename)]
splits = [f for (requested, f) in splits if requested]
for filename in splits:
full_path = os.path.join(directory, extracted_name, filename)
In pattern: SUPERPATTERN
Frequency: 12
Non-data size: 3
Instances Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/snli.py
Class Name:
Method Name: snli_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/multi30k.py
Class Name:
Method Name: multi30k_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/smt.py
Class Name:
Method Name: smt_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/zero.py
Class Name:
Method Name: zero_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/ud_pos.py
Class Name:
Method Name: ud_pos_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/reverse.py
Class Name:
Method Name: reverse_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/count.py
Class Name:
Method Name: count_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/imdb.py
Class Name:
Method Name: imdb_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/iwslt.py
Class Name:
Method Name: iwslt_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/simple_qa.py
Class Name:
Method Name: simple_qa_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/trec.py
Class Name:
Method Name: trec_dataset
Project Name: PetrochukM/PyTorch-NLP
Commit Name: b01dbb875df263184060a27ebd9a829a20703119
Time: 2019-10-20
Author: petrochukm@gmail.com
File Name: torchnlp/datasets/wmt.py
Class Name:
Method Name: wmt_dataset