(string)
| 41 | #removes punctuations and whitespaces from string. The same preprocessing |
| 42 | #is done in yago label file |
| 43 | def preprocessString(string): |
| 44 | string = re.sub(r'[^\w]', ' ', string) |
| 45 | string = string.replace("nbsp",'') |
| 46 | string =" ".join(string.split()) |
| 47 | return (string) |
| 48 | |
| 49 | #removes punctuations and whitespaces from list items |
| 50 | def preprocessListValues(valueList): |
nothing calls this directly
no outgoing calls
no test coverage detected