Isenglish. Args: text: Text tensor or string input.
(text: str)
| 93 | |
| 94 | |
| 95 | def isEnglish(text: str): |
| 96 | """Isenglish. |
| 97 | |
| 98 | Args: |
| 99 | text: Text tensor or string input. |
| 100 | """ |
| 101 | if re.search("^[a-zA-Z']+$", text): |
| 102 | return True |
| 103 | else: |
| 104 | return False |
| 105 | |
| 106 | |
| 107 | def join_chinese_and_english(input_list): |
no test coverage detected
searching dependent graphs…