638810ae894784dec9d65abe156ea2fba11f289e,torchtext/experimental/transforms.py,RegexTokenizer,forward,#RegexTokenizer#Any#,104
Before Change
for regex, replacement_string in self.regex_and_replacement_string_pairs:
line = regex.Sub(line, replacement_string)
return line.split()
class TextSequentialTransforms(nn.Sequential):
rA container to host a sequential text transforms.
After Change
Returns:
List[str]: a list of tokens after normalizing and splitting on whitespace.
return self.regex_tokenizer.forward(line)
class TextSequentialTransforms(nn.Sequential):
rA container to host a sequential text transforms.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: pytorch/text
Commit Name: 638810ae894784dec9d65abe156ea2fba11f289e
Time: 2020-08-07
Author: 22487263+Nayef211@users.noreply.github.com
File Name: torchtext/experimental/transforms.py
Class Name: RegexTokenizer
Method Name: forward
Project Name: catalyst-team/catalyst
Commit Name: 37854b5d097016f7996b1b117a2b4c51d904670f
Time: 2019-05-21
Author: scitator@gmail.com
File Name: catalyst/contrib/criterion/dice.py
Class Name: BCEDiceLoss
Method Name: forward
Project Name: pytorch/text
Commit Name: 638810ae894784dec9d65abe156ea2fba11f289e
Time: 2020-08-07
Author: 22487263+Nayef211@users.noreply.github.com
File Name: torchtext/experimental/transforms.py
Class Name: BasicEnglishNormalize
Method Name: forward