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

Method replace_urls

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

Source from the content-addressed store, hash-verified

85 return result
86
87 def replace_urls(self, string):
88 result = re.sub(self.url, '<url>', string)
89 result = ' '.join(re.split(' +|\n+', result)).strip()
90 return result
91
92
93def remove_less_word(lines_str, word_st):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected