1c6957fd28255a3365615f7e7aca3fb5c3dce310,test/data/test_functional.py,TestFunctional,test_BasicEnglishNormalize,#TestFunctional#,102
Before Change
def test_BasicEnglishNormalize(self):
test_sample = "Basic English Normalization for a Line of Text"
ref_results = ["basic", "english", "normalization",
"for", "a", "line", "of", "text"]
basic_english_normalize = BasicEnglishNormalize()
experimental_eager_tokens = basic_english_normalize(test_sample)
After Change
basic_english_normalize = BasicEnglishNormalize()
experimental_eager_tokens = basic_english_normalize(test_sample)
jit_basic_english_normalize = torch.jit.script(basic_english_normalize)
experimental_jit_tokens = jit_basic_english_normalize(test_sample)
basic_english_tokenizer = data.get_tokenizer("basic_english")
eager_tokens = basic_english_tokenizer(test_sample)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: pytorch/text
Commit Name: 1c6957fd28255a3365615f7e7aca3fb5c3dce310
Time: 2020-08-06
Author: 22487263+Nayef211@users.noreply.github.com
File Name: test/data/test_functional.py
Class Name: TestFunctional
Method Name: test_BasicEnglishNormalize
Project Name: rusty1s/pytorch_geometric
Commit Name: ba8de5d0776da82a0f57b710f9648539555164c8
Time: 2020-06-26
Author: matthias.fey@tu-dortmund.de
File Name: test/nn/conv/test_x_conv.py
Class Name:
Method Name: test_x_conv
Project Name: pytorch/text
Commit Name: 8f3ab86f66f135588ca923ea90c68f3dec10d1fa
Time: 2020-06-03
Author: nayef.ahmed211@gmail.com
File Name: test/data/test_functional.py
Class Name: TestFunctional
Method Name: test_RegexTokenizer