MCPcopy Create free account
hub / github.com/chengsen/PyTorch_TextGCN / replace_num

Method replace_num

data_processor.py:83–85  ·  view source on GitHub ↗
(self, string)

Source from the content-addressed store, hash-verified

81 return " ".join(new_string)
82
83 def replace_num(self, string):
84 result = re.sub(self.num, '<num>', string)
85 return result
86
87 def replace_urls(self, string):
88 result = re.sub(self.url, '<url>', string)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected