(text: Any)
| 213 | |
| 214 | |
| 215 | def tokenize(text: Any) -> List[str]: |
| 216 | tokens: List[str] = [] |
| 217 | for raw_token in TOKEN_RE.findall(str(text or "").casefold()): |
| 218 | token = raw_token.replace("_", "-") |
| 219 | if len(token) <= 1: |
| 220 | continue |
| 221 | tokens.append(token) |
| 222 | if "-" in token: |
| 223 | tokens.extend(part for part in token.split("-") if len(part) > 1) |
| 224 | return tokens |
| 225 | |
| 226 | |
| 227 | def split_sentences(text: Any) -> List[str]: |
no outgoing calls
no test coverage detected